|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.base.Xholon
org.primordion.xholon.app.Application
org.primordion.ealontro.app.AppAntForaging
Ant System with Genetic Programming.
The Ant System is a Xholon implementation of the example presented by John Koza in his book Genetic Programming. It demonstrates how genetic programming can be used to evolve tree-based behaviors, is an example of a grid implemented in Xholon, and also demonstrates mobility as ants move about on the grid.
source: Koza, J. (1992). Genetic Programming. p.329-344
| Nested Class Summary |
| Nested classes inherited from class org.primordion.xholon.app.Application |
Application.GridViewerDetails |
| Field Summary |
| 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.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
| Constructor Summary | |
AppAntForaging()
|
|
| Method Summary | |
double |
getPheromoneDiffusionRate()
|
double |
getPheromoneEvaporationRate()
|
boolean |
getUsePheromone()
|
boolean |
getUsePheromoneDiffusion()
|
void |
initialize(java.lang.String configFileName)
Initialize the application. |
static void |
main(java.lang.String[] args)
main |
boolean |
setParam(java.lang.String pName,
java.lang.String pValue)
Set the value of a parameter. |
void |
setPheromoneDiffusionRate(double pheromoneDiffusionRate)
|
void |
setPheromoneEvaporationRate(double pheromoneEvaporationRate)
|
void |
setUsePheromone(boolean usePheromone)
|
void |
setUsePheromoneDiffusion(boolean usePheromoneDiffusion)
|
void |
wrapup()
Wrapup any unfinished business in the application. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AppAntForaging()
| Method Detail |
public void setPheromoneEvaporationRate(double pheromoneEvaporationRate)
pheromoneEvaporationRate - The pheromoneEvaporationRate to set.public void setPheromoneDiffusionRate(double pheromoneDiffusionRate)
pheromoneDiffusionRate - The pheromoneDiffusionRate to set.public void setUsePheromone(boolean usePheromone)
usePheromone - The usePheromone to set.public void setUsePheromoneDiffusion(boolean usePheromoneDiffusion)
usePheromoneDiffusion - The usePheromoneDiffusion to set.public double getPheromoneEvaporationRate()
public double getPheromoneDiffusionRate()
public boolean getUsePheromone()
public boolean getUsePheromoneDiffusion()
public boolean setParam(java.lang.String pName,
java.lang.String pValue)
IApplication
setParam in interface IApplicationsetParam in class Applicationpublic void initialize(java.lang.String configFileName)
IApplication
initialize in interface IApplicationinitialize in class Applicationpublic void wrapup()
IApplication
wrapup in interface IApplicationwrapup in class Applicationpublic static void main(java.lang.String[] args)
args - One optional command line argument.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||