public class ImmediateCommunicationScheme extends CommunicationScheme
correspondingMessageScheme
Constructor and Description |
---|
ImmediateCommunicationScheme(MessageScheme correspondingMessageScheme) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<CommunicationEvent> |
createCommunicationEvents(java.util.Set<Message> correspondingMessages,
double currentTime,
SimulationContainer simulationContainer)
The ImmediateCommunicationScheme schedules all respective CommunicationEvents
at the current time irrespective of the message.
|
getCorrespondingMessageScheme
public ImmediateCommunicationScheme(MessageScheme correspondingMessageScheme)
public java.util.Set<CommunicationEvent> createCommunicationEvents(java.util.Set<Message> correspondingMessages, double currentTime, SimulationContainer simulationContainer)
createCommunicationEvents
in class CommunicationScheme
correspondingMessages
- The messages to transform into communication eventscurrentTime
- The current time of the simulationsimulationContainer
- The container the simulation runs in