|
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.IfElse
public class IfElse
The if-then-else construct.
| 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 | |
|---|---|
IfElse(GPConfiguration a_conf,
java.lang.Class a_type)
|
|
IfElse(GPConfiguration a_conf,
java.lang.Class a_type,
int a_subReturnType,
int[] a_subChildTypes)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the object. |
boolean |
equals(java.lang.Object a_other)
The equals method. |
boolean |
execute_boolean(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as a boolean. |
int |
execute_int(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as an integer. |
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)
Determines which type a specific child of this command has. |
java.lang.String |
getName()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IfElse(GPConfiguration a_conf,
java.lang.Class a_type)
throws InvalidConfigurationException
InvalidConfigurationException
public IfElse(GPConfiguration a_conf,
java.lang.Class a_type,
int a_subReturnType,
int[] a_subChildTypes)
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)
CommandGene
execute_boolean in class CommandGenec - ignored heren - ignored hereargs - ignored here
public int execute_int(ProgramChromosome c,
int n,
java.lang.Object[] args)
CommandGene
execute_int in class CommandGenec - ignored heren - ignored hereargs - ignored here
public void execute_void(ProgramChromosome c,
int n,
java.lang.Object[] args)
CommandGene
execute_void in class CommandGenec - ignored heren - ignored hereargs - ignored here
public java.lang.Class getChildType(IGPProgram a_ind,
int a_chromNum)
getChildType in class CommandGenea_ind - ignored herea_chromNum - index of child
public java.lang.Object clone()
clone in interface ICloneableclone in class java.lang.Objectpublic 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 | ||||||||