|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.misc.property.PropertyTable
visidia.simulation.process.agent.Agent
visidia.simulation.process.agent.SynchronousAgent
public abstract class SynchronousAgent
Extend this class to implement Synchronized Agents.
Agent
,
Serialized FormField Summary |
---|
Fields inherited from class visidia.simulation.process.agent.Agent |
---|
agentMover, proc |
Constructor Summary | |
---|---|
SynchronousAgent()
|
Method Summary | |
---|---|
int |
getPulse()
Gets the current pulse. |
void |
nextPulse()
Call this method when you want synchronization between agents. |
protected void |
planning(SynchronousAgent agent)
Defines what two agents (current agent and the one given in parameter) do when they meet. |
Methods inherited from class visidia.simulation.process.agent.Agent |
---|
agentsOnVertex, clone, entryDoor, getArity, getDestinationVertex, getEdgeProperty, getNetSize, getProperty, getVertexIdentity, getVertexLabel, getVertexProperty, init, lockVertexIfPossible, lockVertexProperties, move, moveBack, moveToDoor, run, setAgentMover, setAgentProcess, setDoorState, setEdgeProperty, setProperty, setProperty, setVertexLabel, setVertexProperty, setVertexProperty, sleep, toString, unlockVertexProperties, vertexPropertiesLocked |
Methods inherited from class visidia.misc.property.PropertyTable |
---|
containsElement, entrySet, getLockOwner, getPropertyKeys, getVisidiaProperty, isPersistentProperty, locked, lockProperties, removeProperty, resetProperties, setProperties, setVisidiaProperty, unlockProperties |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SynchronousAgent()
Method Detail |
---|
protected void planning(SynchronousAgent agent)
agent
- the agentpublic final int getPulse()
public final void nextPulse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |