org.primordion.ealontro.ec.app.antforaging
Class XhEcjAntForaging

java.lang.Object
  extended byorg.primordion.xholon.base.Xholon
      extended byorg.primordion.xholon.base.XholonWithPorts
          extended byorg.primordion.xholon.base.AbstractGrid
              extended byorg.primordion.ealontro.app.XhAntForaging
                  extended byorg.primordion.ealontro.ec.app.antforaging.XhEcjAntForaging
All Implemented Interfaces:
CeAntForaging, IActivity, IGrid, IXholon

public class XhEcjAntForaging
extends XhAntForaging
implements IActivity, CeAntForaging

Ant Foraging System WITH Genetic Programming.

source: Koza, J. (1992). Genetic Programming. p.329-344

Since:
0.3 (Created on June 15, 2006)
Author:
Ken Webb

Field Summary
static int food_quantity_atStartGen
           
static IXholon next_behavior
           
static int worstStandardizedFitness
           
 
Fields inherited from class org.primordion.ealontro.app.XhAntForaging
dropSize, food, hasNest, pheromoneLevel, roleName
 
Fields inherited from class org.primordion.xholon.base.AbstractGrid
P_BEHAVIOR, P_NEXT, P_PREVIOUS
 
Fields inherited from class org.primordion.xholon.base.XholonWithPorts
port
 
Fields inherited from class org.primordion.xholon.base.Xholon
DEFAULT_LEVEL, interaction, interactionsEnabled
 
Fields inherited from interface org.primordion.ealontro.app.CeAntForaging
AntCE, AntForagingGPCE, AntForagingSystemCE, BehaviorCE, FoodCE, GeneticProgramCE, GridCE, GridCellCE, GridReferenceCE, NestCE, NonTerminalCE, PfDropPheromoneCE, PfIfCarryingFoodCE, PfIfFoodHereCE, PfMoveRandomCE, PfMoveToAdjacentFoodElseCE, PfMoveToAdjacentPheromoneElseCE, PfMoveToNestCE, PfPickUpCE, PfWrapperCE, PopulationCE, PrimitiveCE, RowCE, StructureCE, TerminalCE, XholonClassCE
 
Fields inherited from interface org.primordion.xholon.base.IGrid
BOUNDARY_GRID, BOUNDARY_TORUS, NEIGHBORHOOD_1DCA, NEIGHBORHOOD_HEXAGONAL, NEIGHBORHOOD_MOORE, NEIGHBORHOOD_SIBLING, NEIGHBORHOOD_VON_NEUMANN, P_CAFUTURESELF, P_CALEFTNEIGHBOR, P_CARIGHTNEIGHBOR, P_EAST, P_HEX0, P_HEX1, P_HEX2, P_HEX3, P_HEX4, P_HEX5, P_NORTH, P_NORTHEAST, P_NORTHWEST, P_SOUTH, P_SOUTHEAST, P_SOUTHWEST, P_STAYHERE, P_WEST, REGULAR_COMPLETE, REGULAR_COMPLETE_SELF, REGULAR_CYCLE, REGULAR_WHEEL
 
Fields inherited from interface org.primordion.xholon.base.IXholon
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx
 
Constructor Summary
XhEcjAntForaging()
          Constructor.
 
Method Summary
 void configure()
          Perform some action, typically once at start up; MAY be overridden.
 void reconfigure()
          Reconfigure, such as at the start of a new GP generation.
 
Methods inherited from class org.primordion.ealontro.app.XhAntForaging
act, adjustRawFitness, getFoodQuantity, getPheromoneDiffusionRate, getPheromoneEvaporationRate, getRawFitness, getRoleName, getUsePheromone, getUsePheromoneDiffusion, getVal, hasFood, incRawFitness, initialize, performBooleanActivity, postAct, preAct, setFoodQuantity, setPheromoneDiffusionRate, setPheromoneEvaporationRate, setRawFitness, setRoleName, setUsePheromone, setUsePheromoneDiffusion, toString
 
Methods inherited from class org.primordion.xholon.base.AbstractGrid
configure, getNeighType, getNumNeighbors, moveXholonsToGrid, postConfigure, postReconfigure, preReconfigure, setCaFuture, setCaLeft, setCaRight, setEast, setHex0, setHex1, setHex2, setHex3, setHex4, setHex5, setNorth, setNorthEast, setNorthWest, setSiblingsComplete, setSiblingsCompleteSelf, setSiblingsCycle, setSiblingsWheel, setSouth, setSouthEast, setSouthWest, setWest
 
Methods inherited from class org.primordion.xholon.base.XholonWithPorts
getMaxPorts, getPort, isActiveObject, isBound, isContainer, isPassiveObject, setMaxPorts, setPorts, terminate
 
Methods inherited from class org.primordion.xholon.base.Xholon
appendChild, appendChild, appendChild, cleanup, createStructure, decVal, decVal, depth, draw, getChildNodes, getFirstChild, getFirstSibling, getId, getLastChild, getLastSibling, getName, getNeighbors, getNextId, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumSiblings, getParentNode, getPreviousSibling, getRootNode, getSiblings, getSizeMessageQ, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getXhc, getXhcId, getXhcName, getXhType, handleNodeSelection, hasAncestor, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, height, incVal, incVal, initStatics, inOrderPrint, insertAfter, insertBefore, insertFirstChild, isExternal, isInternal, isLeaf, isRootNode, performActivity, performActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postOrderPrint, preConfigure, preOrderPrint, print, println, processMessageQ, processReceivedMessage, remove, removeChild, resetNextId, sendMessage, sendMessage, sendMessage, setAttributeVal, setFactory, setFirstChild, setId, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setSizeMessageQ, setUid, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVariableValue, setXhc, swapNode, treeSize, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

food_quantity_atStartGen

public static int food_quantity_atStartGen

next_behavior

public static IXholon next_behavior

worstStandardizedFitness

public static int worstStandardizedFitness
Constructor Detail

XhEcjAntForaging

public XhEcjAntForaging()
Constructor.

Method Detail

configure

public void configure()
Description copied from interface: IXholon
Perform some action, typically once at start up; MAY be overridden. Recursive; application should call this only for root.

Specified by:
configure in interface IXholon
Overrides:
configure in class XholonWithPorts

reconfigure

public void reconfigure()
Description copied from interface: IXholon
Reconfigure, such as at the start of a new GP generation.

Specified by:
reconfigure in interface IXholon
Overrides:
reconfigure in class AbstractGrid