JGAP

examples.gp.anttrail
Class AntCommand

java.lang.Object
  extended by org.jgap.gp.CommandGene
      extended by examples.gp.anttrail.AntCommand
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
IfFoodAheadElse, IfFoodAheadLeft, IfFoodAheadRight, Left, Move, Right, TurnToFood

public abstract class AntCommand
extends CommandGene

Abstract base class for GP-commands related to the ant trail problem.

Since:
3.01
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
AntCommand(GPConfiguration a_conf)
           
AntCommand(GPConfiguration a_conf, int a_arity, java.lang.Class a_type)
           
 
Method Summary
 AntMap getMap(ProgramChromosome a_chrom)
           
 
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
 

Constructor Detail

AntCommand

public AntCommand(GPConfiguration a_conf)
           throws InvalidConfigurationException
Throws:
InvalidConfigurationException

AntCommand

public AntCommand(GPConfiguration a_conf,
                  int a_arity,
                  java.lang.Class a_type)
           throws InvalidConfigurationException
Throws:
InvalidConfigurationException
Method Detail

getMap

public AntMap getMap(ProgramChromosome a_chrom)

JGAP