public class ContinuousMetricCommunicationScheme extends CommunicationScheme
correspondingMessageScheme| Constructor and Description |
|---|
ContinuousMetricCommunicationScheme(MessageScheme correspondingMessageScheme) |
ContinuousMetricCommunicationScheme(MessageScheme correspondingMessageScheme,
double timeFactor) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<CommunicationEvent> |
createCommunicationEvents(java.util.Set<Message> correspondingMessages,
double currentTime,
SimulationContainer simulationContainer)
The CommunicationEvents based on this scheme are scheduled in the future,
proportionally to the metric distnace between the sender and receiver,
scaled by the timeFactor
|
getCorrespondingMessageSchemepublic ContinuousMetricCommunicationScheme(MessageScheme correspondingMessageScheme, double timeFactor) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic ContinuousMetricCommunicationScheme(MessageScheme correspondingMessageScheme)
public java.util.Set<CommunicationEvent> createCommunicationEvents(java.util.Set<Message> correspondingMessages, double currentTime, SimulationContainer simulationContainer)
createCommunicationEvents in class CommunicationSchemecorrespondingMessages - The messages to transform into communication eventscurrentTime - The current time of the simulationsimulationContainer - The container the simulation runs in