public abstract class Event extends SimulationEntity implements java.lang.Comparable<Event>
associatedSimulationContainer
Constructor and Description |
---|
Event(SimulationContainer simulationContainer,
double scheduledForTime)
Abstraction of an event representing a model dynamic at a specified time
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Event otherEvent)
Method to compare the execution time of this event to another event for sorting events by execution time
|
double |
getScheduledForTime() |
abstract void |
processEvent(double systemTime)
Method to execute the event; Will make the model dynamics associated to this event come into effect
|
getAssociatedSimulationContainer
public Event(SimulationContainer simulationContainer, double scheduledForTime) throws java.lang.IllegalArgumentException
simulationContainer
- The simulation container the model dynamic is to take place inscheduledForTime
- The simulation time at which the event shall be processedjava.lang.IllegalArgumentException
- When the simulation container is null or the scheduled time lies before the (reference) time within the simulation containerpublic double getScheduledForTime()
public int compareTo(Event otherEvent)
compareTo
in interface java.lang.Comparable<Event>
otherEvent
- Event that to reference the scheduled time of this event topublic abstract void processEvent(double systemTime)
systemTime
- The current time of the system for execution