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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<MessageListener>getExpectedRecipients(Message message) getType()voidsendDirectedMessage(MessageListener recipient, Message message) voidsendMessage(Message message) Methods inherited from class org.baseagent.sim.SimulationComponent
getSimulation, getUUID, setSimulationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getTypein classSimulationComponent
-
getExpectedRecipients
-
sendMessage
-
sendDirectedMessage
-