org.vizzini.ai.geneticprogramming
Interface IFunctionGenerator

All Known Implementing Classes:
AbstractFunctionGenerator, DefaultFunctionGenerator

public interface IFunctionGenerator

Defines methods required by a function generator in genetic programming.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 void addFunction(IFunction function)
          Add a function exemplar to the function set.
 void addTerminal(ITerminal terminal)
          Add a terminal exemplar to the terminal set.
 IFunction create()
          Return a new populated function.
 int getFunctionCount()
          Return the function count.
 int getMaxDepth()
           
 Class getReturnType()
           
 int getTerminalCount()
          Return the terminal count.
 void setMaxDepth(int maxDepth)
           
 void setReturnType(Class returnType)
           
 

Method Detail

addFunction

void addFunction(IFunction function)
Add a function exemplar to the function set.

Parameters:
function - Function exemplar.
Since:
v0.3

addTerminal

void addTerminal(ITerminal terminal)
Add a terminal exemplar to the terminal set.

Parameters:
terminal - Terminal exemplar.
Since:
v0.3

create

IFunction create()
Return a new populated function.

Since:
v0.3

getFunctionCount

int getFunctionCount()
Return the function count.

Since:
v0.3

getMaxDepth

int getMaxDepth()
Returns:
Return maxDepth.
Since:
v0.3

getReturnType

Class getReturnType()
Returns:
Return returnType.
Since:
v0.3

getTerminalCount

int getTerminalCount()
Return the terminal count.

Since:
v0.3

setMaxDepth

void setMaxDepth(int maxDepth)
Parameters:
maxDepth - the maxDepth to set
Since:
v0.3

setReturnType

void setReturnType(Class returnType)
Parameters:
returnType - the returnType to set
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02