|
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.terminal.Argument
public class Argument
An argument that will be used internally only by ADF's.
| 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 | |
|---|---|
Argument(GPConfiguration a_conf,
int a_index,
java.lang.Class type)
|
|
| Method Summary | |
|---|---|
boolean |
execute_boolean(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as a boolean. |
double |
execute_double(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as a double. |
float |
execute_float(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as a float. |
int |
execute_int(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as an integer. |
long |
execute_long(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as a long. |
java.lang.Object |
execute_object(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node as an object. |
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.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Argument(GPConfiguration a_conf,
int a_index,
java.lang.Class type)
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 long execute_long(ProgramChromosome c,
int n,
java.lang.Object[] args)
CommandGene
execute_long in class CommandGenec - ignored heren - ignored hereargs - ignored here
public float execute_float(ProgramChromosome c,
int n,
java.lang.Object[] args)
CommandGene
execute_float in class CommandGenec - ignored heren - ignored hereargs - ignored here
public double execute_double(ProgramChromosome c,
int n,
java.lang.Object[] args)
CommandGene
execute_double in class CommandGenec - ignored heren - ignored hereargs - ignored here
public java.lang.Object execute_object(ProgramChromosome c,
int n,
java.lang.Object[] args)
CommandGene
execute_object in class CommandGenec - ignored heren - ignored hereargs - ignored here
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
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||