public class RoundRobinProtocol extends RigidProtocol
| Constructor and Description |
|---|
RoundRobinProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem)
Creates a new (non-rigid) round robin protocol for the given multi-agent system.
|
RoundRobinProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem,
boolean isRigid)
Creates a new (non-rigid) round robin protocol for the given multi-agent system.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<ActionEvent> |
doStep()
Executes one step of the protocol.
|
protected boolean |
hasTerminated()
This method determines if this protocol has terminated,
i.e.
|
hasPerformedNoOperation, setHasPerformedNoOperationaddProtocolListener, getMultiAgentSystem, notifyActionPerformed, notifyTerminated, removeProtocolListener, steppublic RoundRobinProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem)
multiAgentSystem - a multi-agent system.public RoundRobinProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem, boolean isRigid)
multiAgentSystem - a multi-agent system.isRigid - whether this protocol is rigid.protected boolean hasTerminated()
AbstractProtocolhasTerminated in class RigidProtocolprotected Set<ActionEvent> doStep() throws ProtocolTerminatedException
AbstractProtocoldoStep in class AbstractProtocolProtocolTerminatedExceptionCopyright © 2018. All rights reserved.