org.jgap.gp
Class MathCommand
- java.lang.Object
-
- org.jgap.gp.CommandGene
-
- org.jgap.gp.MathCommand
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
- Direct Known Subclasses:
- Abs, Add, Add3, Add4, AddAndStore, And, AndD, ArcCosine, ArcSine, ArcTangent, Ceil, Constant, Cosine, Cube, DifferentD, Divide, DivideIntD, DivideProtected, Equals, EqualsD, Exp, False, Floor, Gamma, Gaussian, GreaterThan, GreaterThanD, GreaterThanOrEqualD, Hill, Id, Increment, IncrementMemory, LesserThan, LesserThanD, LesserThanOrEqualD, Log, Logistic, Max, Min, Modulo, ModuloD, ModuloReplaceD, Multiply, Multiply3, NOP, Not, NotD, Or, OrD, Pop, Pow, RandomGenerator, Round, RoundD, Sigmoid, Sign, Sine, Sqrt, Square, Step, Subtract, Tangent, True, Xor, XorD
public abstract class MathCommand extends CommandGene
Abstract base class for GP-commands related to mathematical calculation.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
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
Constructors Constructor and Description MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType)MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType, int a_subReturnType)MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType, int a_subReturnType, int a_subChildType)Allows specifying a sub return type and a single sub child type.MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType, int a_subReturnType, int[] a_subChildTypes)Allows specifying a sub return type and sub child types.
-
Method Summary
-
Methods inherited from class org.jgap.gp.CommandGene
cleanup, compareTo, dynamizeArity, ensureUniqueness, ensureUniqueness, ensureUniqueness2, equals, execute_boolean, execute_double, execute_float, execute_int, execute_long, execute_object, execute_void, execute, getAllele, getApplicationData, getArity, getChildType, getEnergy, getGPConfiguration, getName, getPersistentRepresentation, getReturnType, getSubChildType, getSubChildTypes, getSubReturnType, hashCode, isAffectGlobalState, isCompareApplicationData, isFloatType, isIntegerType, isValid, isValid, setAllele, setApplicationData, setCompareApplicationData, setEnergy, setNoValidation, setReturnType, setToRandomValue, setValueFromPersistentRepresentation, size, toString
-
-
-
-
Constructor Detail
-
MathCommand
public MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType) throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
-
MathCommand
public MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType, int a_subReturnType) throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
-
MathCommand
public MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType, int a_subReturnType, int[] a_subChildTypes) throws InvalidConfigurationException
Allows specifying a sub return type and sub child types.- Parameters:
a_conf- the configuration to usea_arity- the number of children of the nodea_returnType- type of the return value of the nodea_subReturnType- sub type of the return type, optional usagea_subChildTypes- sub type of a child, optional usage- Throws:
InvalidConfigurationException- Since:
- 3.2
-
MathCommand
public MathCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_returnType, int a_subReturnType, int a_subChildType) throws InvalidConfigurationException
Allows specifying a sub return type and a single sub child type.- Parameters:
a_conf- the configuration to usea_arity- the number of children of the nodea_returnType- type of the return value of the nodea_subReturnType- sub type of the return type, optional usagea_subChildType- sub type of a child, optional usage- Throws:
InvalidConfigurationException- Since:
- 3.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG