|
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.paintedDesert.AntCommand
examples.gp.paintedDesert.SandColor
public class SandColor
Returns the color of the sand at the current position.
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 | |
---|---|
SandColor(GPConfiguration a_conf)
Allows to specify how many fields to look ahead to the right. |
Method Summary | |
---|---|
int |
execute_int(ProgramChromosome a_chrom,
int a_n,
java.lang.Object[] a_args)
Executes this node as an integer. |
java.lang.String |
toString()
|
Methods inherited from class examples.gp.paintedDesert.AntCommand |
---|
getMap |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SandColor(GPConfiguration a_conf) throws InvalidConfigurationException
a_conf
- the configuration to usea_lookAheadFields
- look ahead n fields
InvalidConfigurationException
Method Detail |
---|
public int execute_int(ProgramChromosome a_chrom, int a_n, java.lang.Object[] a_args)
CommandGene
execute_int
in class CommandGene
a_chrom
- ignored herea_n
- ignored herea_args
- ignored here
public 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 |