JGAP

org.jgap.gp
Interface IMutateable

All Known Implementing Classes:
Add, And, AndD, CountMatrix, Divide, False, GO_E, GO_N, GO_S, GO_W, IfFoodAheadLeft, Left, Multiply, Or, OrD, ReplaceInMatrix, Right, SubProgram, Subtract, Terminal, True, TurnToFood, X, Y

public interface IMutateable

Interface for GP commands that are mutateable.

Since:
3.0

Field Summary
static java.lang.String CVS_REVISION
          String containing the CVS revision.
 
Method Summary
 CommandGene applyMutation(int a_index, double a_percentage)
          Mutates a CommandGene.
 

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

applyMutation

CommandGene applyMutation(int a_index,
                          double a_percentage)
                          throws InvalidConfigurationException
Mutates a CommandGene.

Parameters:
a_index - references the part of a multipart object, normally not relevant
a_percentage - the mutation rate (0.0 to 1.0)
Returns:
the mutant
Throws:
InvalidConfigurationException
Since:
3.0

JGAP