public abstract class RigidProtocol extends AbstractProtocol
| Constructor and Description |
|---|
RigidProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem)
Creates a new rigid protocol for the given multi-agent system.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasPerformedNoOperation(Agent a)
Checks whether the given agent has already performed
a NO_OPERATION.
|
protected boolean |
hasTerminated()
This method determines if this protocol has terminated,
i.e.
|
protected void |
setHasPerformedNoOperation(Agent a)
Sets that the given agent has performed a NO_OPERATION.
|
addProtocolListener, doStep, getMultiAgentSystem, notifyActionPerformed, notifyTerminated, removeProtocolListener, steppublic RigidProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem)
multiAgentSystem - a multi-agent system.protected boolean hasTerminated()
AbstractProtocolhasTerminated in class AbstractProtocolprotected boolean hasPerformedNoOperation(Agent a)
a - an agent.protected void setHasPerformedNoOperation(Agent a)
a - an agent.Copyright © 2018. All rights reserved.