public class Philosopher extends Agent<MyAMAS,TableEnvironment>
| Modifier and Type | Class and Description |
|---|---|
static class |
Philosopher.State |
amas, criticalities, neighborhood| 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, computeExecutionOrder, cycle, destroy, getAmas, getExecutionOrder, getMostCriticalNeighbor, onAct, onAgentCycleBegin, onAgentCycleEnd, onDecide, onExpose, onInitialize, onPerceive, onReady, onSystemCycleBegin, onSystemCycleEndprotected void onPerceiveDecideAct()
AgentonPerceiveDecideAct in class Agent<MyAMAS,TableEnvironment>protected double computeCriticality()
AgentcomputeCriticality in class Agent<MyAMAS,TableEnvironment>protected void onDraw()
AgentonDraw in class Agent<MyAMAS,TableEnvironment>