public class Philosopher extends Agent<MyAMAS,TableEnvironment>
Modifier and Type | Class and Description |
---|---|
static class |
Philosopher.State |
amas, criticalities, neighborhood, params
Constructor and Description |
---|
Philosopher(int id,
MyAMAS amas,
Fork left,
Fork right) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeCriticality()
This method must be overridden by the agents.
|
protected void |
onDraw()
This method is essentially intended for debugging purpose.
|
protected void |
onPerceiveDecideAct()
Perceive, decide and act
|
_onBeforeReady, addNeighbor, computeExecutionOrderLayer, cycle, destroy, getAmas, getExecutionOrder, getMostCriticalNeighbor, onAct, onAgentCycleBegin, onAgentCycleEnd, onDecide, onExpose, onInitialize, onPerceive, onReady, onSystemCycleBegin, onSystemCycleEnd, toString
protected void onPerceiveDecideAct()
Agent
onPerceiveDecideAct
in class Agent<MyAMAS,TableEnvironment>
protected double computeCriticality()
Agent
computeCriticality
in class Agent<MyAMAS,TableEnvironment>
protected void onDraw()
Agent
onDraw
in class Agent<MyAMAS,TableEnvironment>