examples.gp.paintedDesert
Class AntCommand
java.lang.Object
org.jgap.gp.CommandGene
examples.gp.paintedDesert.AntCommand
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
- Direct Known Subclasses:
- Carrying, Drop, GO_E, GO_N, GO_S, GO_W, IfDrop, MayDropSand, MayPickUp, MoveRandom, Pickup, SandAtLocation, SandBelongsHere, SandColor, X, Y
public abstract class AntCommand
- extends CommandGene
Abstract base class for GP-commands related to the ant painted desert problem.
Derived from class AntCommand from the ant trail example.
- Since:
- 3.2
- See Also:
- Serialized Form
Methods inherited from class org.jgap.gp.CommandGene |
check, check, 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, getArityMax, getArityMin, getChildType, getCommandType, getEnergy, getGPConfiguration, getInternalValue, getName, getPersistentRepresentation, getPersistentRepresentationExt, getReturnType, getSubChildType, getSubChildTypes, getSubReturnType, hashCode, init, isAffectGlobalState, isCompareApplicationData, isFloatType, isIntegerType, isValid, isValid, setAllele, setApplicationData, setArity, setArityMax, setArityMin, setCompareApplicationData, setEnergy, setNoValidation, setReturnType, setToRandomValue, setValueFromPersistentRepresentation, setValueFromString, size, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AntCommand
public AntCommand(GPConfiguration a_conf,
int a_arity,
java.lang.Class a_type)
throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
AntCommand
public AntCommand(GPConfiguration a_conf,
int a_arity,
java.lang.Class a_returnType,
int a_subReturnType,
int[] a_childSubTypes)
throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
getMap
public AntMap getMap(ProgramChromosome a_chrom)