#include <Simulation.h>
Inheritance diagram for SimulationEvent:
This includes object and/or event creation, modification and/or deletion. Events are sorted along a time axis, and the simulation clock jumps from event to event, while the simulation executes each event's method (Handle).
Definition at line 213 of file Simulation.h.
Public Member Functions | |
Simulation * | GetSimulation () |
Returns the corresponding simulation for the event. | |
long | GetTime () |
Returns the time when the event shall happen. | |
virtual void | Handle () |
The main event method. | |
SimulationEvent () | |
Creates a new simulation event. | |
virtual | ~SimulationEvent () |
Destroys the simulation event. | |
Private Attributes | |
Simulation * | Simulation |
The corresponding simulation for the event. | |
friend | Simulation |
long | Time |
The time when the event shall happen. |
|
Creates a new simulation event.
|
|
Destroys the simulation event.
|
|
Returns the corresponding simulation for the event.
|
|
Returns the time when the event shall happen.
|
|
The main event method. This method is called by the simulation to perform the specific event actions, such as event or object creation, modification or deletion. Override this method in your derived events. Events are automatically deleted after they have been executed. Reimplemented in SimulationEndEvent. |
|
The corresponding simulation for the event.
Definition at line 229 of file Simulation.h. |
|
Definition at line 215 of file Simulation.h. |
|
The time when the event shall happen.
Definition at line 234 of file Simulation.h. |