|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.gp.CommandGene
org.jgap.gp.function.ForXLoop
public class ForXLoop
The for-loop loop from 0 to X-1.
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 | |
---|---|
ForXLoop(GPConfiguration a_conf,
java.lang.Class a_type)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the object. |
int |
compareTo(java.lang.Object a_other)
The compareTo-method. |
boolean |
equals(java.lang.Object a_other)
The equals-method. |
void |
execute_void(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node, returning nothing. |
java.lang.Class |
getChildType(IGPProgram a_ind,
int a_chromNum)
Gets the type of node allowed from the given child number. |
java.lang.String |
getName()
|
java.lang.Class |
getReturnType()
|
boolean |
isValid(ProgramChromosome a_program)
Subclasses capable of validating programs should overwrite this method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ForXLoop(GPConfiguration a_conf, java.lang.Class a_type) throws InvalidConfigurationException
InvalidConfigurationException
Method Detail |
---|
public java.lang.String toString()
toString
in class CommandGene
public java.lang.String getName()
getName
in class CommandGene
public void execute_void(ProgramChromosome c, int n, java.lang.Object[] args)
CommandGene
execute_void
in class CommandGene
c
- ignored heren
- ignored hereargs
- ignored herepublic boolean isValid(ProgramChromosome a_program)
CommandGene
isValid
in class CommandGene
a_program
- the ProgramChromosome to validate
public java.lang.Class getChildType(IGPProgram a_ind, int a_chromNum)
CommandGene
getChildType
in class CommandGene
a_ind
- the individual the child belongs toa_chromNum
- the chromosome number
public java.lang.Class getReturnType()
getReturnType
in class CommandGene
public int compareTo(java.lang.Object a_other)
compareTo
in interface java.lang.Comparable
compareTo
in class CommandGene
a_other
- the other object to compare
public boolean equals(java.lang.Object a_other)
equals
in class CommandGene
a_other
- the other object to compare
public java.lang.Object clone()
clone
in interface ICloneable
clone
in class java.lang.Object
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |