Package org.baseagent.comms
Class Communicator
java.lang.Object
org.baseagent.sim.SimulationComponent
org.baseagent.comms.Communicator
- All Implemented Interfaces:
SimulationListener
- Direct Known Subclasses:
BroadcastCommunicator
,InRangeCommunicator
,NearestNeighborCommunicator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.baseagent.sim.SimulationComponent
SimulationComponent.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract List<MessageListener>
getExpectedRecipients
(Message message) getType()
void
sendDirectedMessage
(MessageListener recipient, Message message) void
sendMessage
(Message message) Methods inherited from class org.baseagent.sim.SimulationComponent
getSimulation, getUUID, setSimulation
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.baseagent.sim.SimulationListener
onAfterStepEnded, onAfterStepStarted, onBeforeStepEnded, onBeforeStepStarted, onSimulationComponentAdded, onSimulationComponentRemoved, onSimulationEnded, onSimulationPaused, onSimulationResumed, onSimulationStarted, onSimulationStopped, onStepEnded, onStepStarted
-
Constructor Details
-
Communicator
-
-
Method Details
-
getType
- Specified by:
getType
in classSimulationComponent
-
getExpectedRecipients
-
sendMessage
-
sendDirectedMessage
-