JGAP

org.jgap.gp
Interface IProgramCreator

All Known Implementing Classes:
DefaultProgramCreator

public interface IProgramCreator

Interface for creating a single program (IGPProgram).

Since:
3.2.2

Field Summary
static java.lang.String CVS_REVISION
          String containing the CVS revision.
 
Method Summary
 IGPProgram create(GPConfiguration a_conf, int a_programIndex, java.lang.Class[] a_types, java.lang.Class[][] a_argTypes, CommandGene[][] a_nodeSets, int[] a_minDepths, int[] a_maxDepths, int a_maxNodes, int a_depth, boolean a_grow, int a_tries, boolean[] a_fullModeAllowed)
          Initializes the given population by adding new individuals to it.
 

Field Detail

CVS_REVISION

static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!

See Also:
Constant Field Values
Method Detail

create

IGPProgram create(GPConfiguration a_conf,
                  int a_programIndex,
                  java.lang.Class[] a_types,
                  java.lang.Class[][] a_argTypes,
                  CommandGene[][] a_nodeSets,
                  int[] a_minDepths,
                  int[] a_maxDepths,
                  int a_maxNodes,
                  int a_depth,
                  boolean a_grow,
                  int a_tries,
                  boolean[] a_fullModeAllowed)
                  throws InvalidConfigurationException
Initializes the given population by adding new individuals to it.

Parameters:
a_conf - the configuration to use
a_programIndex - index of the current program in the population, starting with 0
a_types - Class[]
a_argTypes - Class[][]
a_nodeSets - CommandGene[][]
a_minDepths - int[]
a_maxDepths - int[]
a_maxNodes - int
a_depth - the required depth of the program
a_grow - true: use grow mode, false: use full mode
a_tries - maximum number of tries allowed to produce a valid program
a_fullModeAllowed - boolean[]
Returns:
the newly created program
Throws:
InvalidConfigurationException - in case of any error
Since:
3.2.2

JGAP