|
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.ReadFromMatrix
public class ReadFromMatrix
Reads a value from a two-dimensional matrix in internal memory.
| 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 | |
|---|---|
ReadFromMatrix(GPConfiguration a_conf,
java.lang.String a_matrixName)
|
|
ReadFromMatrix(GPConfiguration a_conf,
java.lang.String a_matrixName,
int a_subChildType)
Allows setting a sub child 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. |
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)
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 ReadFromMatrix(GPConfiguration a_conf,
java.lang.String a_matrixName)
throws InvalidConfigurationException
InvalidConfigurationException
public ReadFromMatrix(GPConfiguration a_conf,
java.lang.String a_matrixName,
int a_subChildType)
throws InvalidConfigurationException
a_conf - GPConfigurationa_matrixName - Stringa_subChildType - int
InvalidConfigurationException| Method Detail |
|---|
public java.lang.String toString()
toString in class CommandGenepublic java.lang.String getName()
getName in class CommandGene
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)
getChildType in class CommandGenea_ind - ignored herea_chromNum - index of child
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
public java.lang.Object clone()
clone in interface ICloneableclone in class java.lang.Object
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||