org.jgap.gp
Interface IProgramCreator
-
- All Known Implementing Classes:
- DefaultProgramCreator
public interface IProgramCreatorInterface for creating a single program (IGPProgram).- Since:
- 3.2.2
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IGPProgramcreate(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 usea_programIndex- index of the current program in the population, starting with 0a_types- Class[]a_argTypes- Class[][]a_nodeSets- CommandGene[][]a_minDepths- int[]a_maxDepths- int[]a_maxNodes- inta_depth- the required depth of the programa_grow- true: use grow mode, false: use full modea_tries- maximum number of tries allowed to produce a valid programa_fullModeAllowed- boolean[]- Returns:
- the newly created program
- Throws:
InvalidConfigurationException- in case of any error- Since:
- 3.2.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG