JGAP

org.jgap.gp
Class MathCommand

java.lang.Object
  extended by org.jgap.gp.CommandGene
      extended by org.jgap.gp.MathCommand
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
Add, Add3, AddAndStore, And, Constant, Cosine, Divide, Equals, Exp, False, Increment, Modulo, Multiply, Multiply3, NOP, Not, Or, Pop, Pow, Sine, Subtract, True, Xor

public abstract class MathCommand
extends CommandGene

Abstract base class for GP-commands related to mathematical calculation.

Since:
3.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jgap.gp.CommandGene
BooleanClass, DELTA, DoubleClass, FloatClass, IntegerClass, LongClass, VoidClass
 
Constructor Summary
MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType)
           
 
Method Summary
 
Methods inherited from class org.jgap.gp.CommandGene
check, check, cleanup, compareTo, equals, execute_boolean, execute_double, execute_float, execute_int, execute_long, execute_object, execute_void, execute, getAllele, getApplicationData, getArity, getChildType, getEnergy, getGPConfiguration, getInternalValue, getName, getPersistentRepresentation, getReturnType, hashCode, init, isAffectGlobalState, isCompareApplicationData, isFloatType, isIntegerType, isValid, isValid, setAllele, setApplicationData, setCompareApplicationData, setEnergy, setNoValidation, setReturnType, setToRandomValue, setValueFromPersistentRepresentation, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MathCommand

public MathCommand(GPConfiguration a_conf,
                   int a_arity,
                   java.lang.Class a_returnType)
            throws InvalidConfigurationException
Throws:
InvalidConfigurationException

JGAP