|
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.LoopUntil
public class LoopUntil
A loop until the condition of the first argument is true.
| 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 | |
|---|---|
LoopUntil(GPConfiguration a_conf)
Constructor for the function |
|
LoopUntil(GPConfiguration a_conf,
java.lang.Class a_typeVar,
int a_count)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object a_other)
The compareTo-method. |
boolean |
equals(java.lang.Object a_other)
The equals-method. |
boolean |
execute_boolean(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes the LoopUntil function for a void argument. |
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()
|
boolean |
isValid(ProgramChromosome a_program)
Subclasses capable of validating programs should overwrite this method. |
java.lang.String |
toString()
Program listing name of function |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoopUntil(GPConfiguration a_conf)
throws InvalidConfigurationException
a_conf -
InvalidConfigurationException
public LoopUntil(GPConfiguration a_conf,
java.lang.Class a_typeVar,
int a_count)
throws InvalidConfigurationException
InvalidConfigurationException| Method Detail |
|---|
public java.lang.String toString()
toString in class CommandGenepublic java.lang.String getName()
getName in class CommandGene
public boolean execute_boolean(ProgramChromosome c,
int n,
java.lang.Object[] args)
execute_boolean in class CommandGenec - test - args -
public boolean isValid(ProgramChromosome a_program)
CommandGene
isValid in class CommandGenea_program - the ProgramChromosome to validate
public java.lang.Class getChildType(IGPProgram a_ind,
int a_chromNum)
CommandGene
getChildType in class CommandGenea_ind - the individual the child belongs toa_chromNum - the chromosome number
public int compareTo(java.lang.Object a_other)
compareTo in interface java.lang.ComparablecompareTo in class CommandGenea_other - the other object to compare
public boolean equals(java.lang.Object a_other)
equals in class CommandGenea_other - the other object to compare
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||