JGAP

org.jgap.gp
Interface IGPInitStrategy

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
InitStrategy, InitStrategy

public interface IGPInitStrategy
extends java.io.Serializable

Optional initializer for creating GP programs. Set it via GPConfiguration.setInitStrategy.

Since:
3.2.1

Field Summary
static java.lang.String CVS_REVISION
          String containing the CVS revision.
 
Method Summary
 CommandGene init(IGPChromosome a_chrom, int a_chromNum)
          Initializes a chromosome within a GP program before a random creation of the (rest of the) program is executed.
 

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

init

CommandGene init(IGPChromosome a_chrom,
                 int a_chromNum)
                 throws java.lang.Exception
Initializes a chromosome within a GP program before a random creation of the (rest of the) program is executed.

Parameters:
a_chrom - the chromosome within the GP program to create randomly
a_chromNum - index of the chromosome with the GP program
Returns:
the CommandGene to use as first node, or null if random selection
Throws:
java.lang.Exception
Since:
3.2.1

JGAP