| Modifier and Type | Field and Description |
|---|---|
double |
dx
X coordinate of the ant in the world
|
double |
dy
Y coordinate of the ant in the world
|
amas, criticalities, neighborhood, params| Constructor and Description |
|---|
Ant(AntHill amas)
Constructor of the ant
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onAct()
Move in a random direction
|
_onBeforeReady, addNeighbor, computeCriticality, computeExecutionOrderLayer, cycle, destroy, getAmas, getExecutionOrder, getMostCriticalNeighbor, onAgentCycleBegin, onAgentCycleEnd, onDecide, onDraw, onExpose, onInitialize, onPerceive, onPerceiveDecideAct, onReady, onSystemCycleBegin, onSystemCycleEnd, toStringpublic double dx
public double dy
public Ant(AntHill amas)
amas - the amas the ant belongs to