public class AsyncTest.MyAgent extends Agent<AsyncTest.MyAMAS,AsyncTest.MyEnvironment>
Agent.Phase| Modifier and Type | Field and Description |
|---|---|
int |
myCycle |
amas, criticalities, currentPhase, neighborhood, params| Constructor and Description |
|---|
MyAgent(AsyncTest.MyAMAS amas,
java.lang.Object... params) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onAct()
This method corresponds to the action phase of the agents and must be
overridden
|
protected void |
onAgentCycleEnd()
This method is called at the end of an agent's cycle
|
protected void |
onInitialization()
Called before all agents are created
|
protected void |
onPerceive()
This method corresponds to the perception phase of the agents and must be
overridden
|
_computeExecutionOrder, _onBeforeReady, addNeighbor, computeCriticality, computeExecutionOrderLayer, destroy, getAmas, getCurrentPhase, getEnvironment, getExecutionOrder, getId, getMostCriticalNeighbor, isSynchronous, onAgentCycleBegin, onDecide, onDecideAndAct, onDraw, onePhaseCycle, onExpose, onInitialize, onReady, onRenderingInitialization, onSystemCycleBegin, onSystemCycleEnd, onUpdateRender, phase1, phase2, run, setAsynchronous, toStringpublic MyAgent(AsyncTest.MyAMAS amas, java.lang.Object... params)
protected void onInitialization()
AgentonInitialization in class Agent<AsyncTest.MyAMAS,AsyncTest.MyEnvironment>protected void onPerceive()
AgentonPerceive in class Agent<AsyncTest.MyAMAS,AsyncTest.MyEnvironment>protected void onAct()
AgentonAct in class Agent<AsyncTest.MyAMAS,AsyncTest.MyEnvironment>protected void onAgentCycleEnd()
AgentonAgentCycleEnd in class Agent<AsyncTest.MyAMAS,AsyncTest.MyEnvironment>