|
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.MathCommand
examples.gp.symbolicRegression.ModuloD
public class ModuloD
The modulo operation.
Nested Class Summary | |
---|---|
protected static interface |
ModuloD.Compatible
|
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 | |
---|---|
ModuloD(GPConfiguration a_conf,
java.lang.Class a_returnType)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the object. |
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.String |
getName()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModuloD(GPConfiguration a_conf, java.lang.Class a_returnType) throws InvalidConfigurationException
InvalidConfigurationException
Method Detail |
---|
public java.lang.String toString()
toString
in class CommandGene
public java.lang.String getName()
getName
in class CommandGene
public int execute_int(ProgramChromosome c, int n, java.lang.Object[] args)
CommandGene
execute_int
in class CommandGene
c
- ignored heren
- ignored hereargs
- ignored here
public long execute_long(ProgramChromosome c, int n, java.lang.Object[] args)
CommandGene
execute_long
in class CommandGene
c
- ignored heren
- ignored hereargs
- ignored here
public float execute_float(ProgramChromosome c, int n, java.lang.Object[] args)
CommandGene
execute_float
in class CommandGene
c
- ignored heren
- ignored hereargs
- ignored here
public double execute_double(ProgramChromosome c, int n, java.lang.Object[] args)
CommandGene
execute_double
in class CommandGene
c
- 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 CommandGene
c
- ignored heren
- ignored hereargs
- ignored here
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 |