|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.gp.CommandGene
examples.gp.anttrail.AntCommand
examples.gp.anttrail.Right
public class Right
Turn the ant right.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jgap.gp.CommandGene |
|---|
CommandGene.COMMAND_TYPE |
| Field Summary |
|---|
| Fields inherited from class org.jgap.gp.CommandGene |
|---|
BooleanClass, CharacterClass, DELTA, DoubleClass, FloatClass, IntegerClass, LongClass, nodeIndex, VoidClass |
| Constructor Summary | |
|---|---|
Right(GPConfiguration a_conf)
|
|
| Method Summary | |
|---|---|
CommandGene |
applyMutation(int index,
double a_percentage)
Mutates a CommandGene. |
void |
execute_void(ProgramChromosome a_chrom,
int a_n,
java.lang.Object[] a_args)
Executes this node, returning nothing. |
java.lang.String |
toString()
|
| Methods inherited from class examples.gp.anttrail.AntCommand |
|---|
getMap |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Right(GPConfiguration a_conf)
throws InvalidConfigurationException
InvalidConfigurationException| Method Detail |
|---|
public CommandGene applyMutation(int index,
double a_percentage)
throws InvalidConfigurationException
IMutateable
applyMutation in interface IMutateableindex - references the part of a multipart object, normally not
relevanta_percentage - the mutation rate (0.0 to 1.0)
InvalidConfigurationException
public void execute_void(ProgramChromosome a_chrom,
int a_n,
java.lang.Object[] a_args)
CommandGene
execute_void in class CommandGenea_chrom - ignored herea_n - ignored herea_args - ignored herepublic java.lang.String toString()
toString in class CommandGene
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||