|
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.ResetMatrix
public class ResetMatrix
Resets a two-dimensional matrix in internal memory by setting each cell to an initial value.
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 | |
---|---|
ResetMatrix(GPConfiguration a_conf,
java.lang.String a_matrixName,
char a_filler)
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. |
void |
execute_void(ProgramChromosome c,
int n,
java.lang.Object[] args)
Executes this node, returning nothing. |
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 ResetMatrix(GPConfiguration a_conf, java.lang.String a_matrixName, char a_filler) throws InvalidConfigurationException
a_conf
- the configuration to usea_matrixName
- name of the matrixa_filler
- the character to fill the matrix with
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 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 |