public class CommunicationEvent extends Event
associatedSimulationContainer
Constructor and Description |
---|
CommunicationEvent(Message correspondingMessage,
double scheduledForTime,
SimulationContainer simulationContainer)
A communication event binds a message to the temporal and process model.
|
Modifier and Type | Method and Description |
---|---|
Message |
getCorrespondingMessage() |
void |
processEvent(double systemTime)
Processing the communication event is semantically equivalent to processing the message associated with it
|
compareTo, getScheduledForTime
getAssociatedSimulationContainer
public CommunicationEvent(Message correspondingMessage, double scheduledForTime, SimulationContainer simulationContainer) throws java.lang.IllegalArgumentException
correspondingMessage
- The message corresponding to the communication eventscheduledForTime
- The time at which the execution of the message is scheduledsimulationContainer
- The container in which the simulation takes placejava.lang.IllegalArgumentException
- Gets thrown when the message corresponding to this event is nullpublic Message getCorrespondingMessage()
public void processEvent(double systemTime)
processEvent
in class Event
systemTime
- The current time of the system for execution