E
- the type of the entity which is modified by this eventpublic interface ISimEvent<E extends IEntity>
eventRoutine
method
is being executed. In this way, this class supports the so-called event-scheduling simulation
modelling.
No simulated time may pass in the eventRoutine
. In order to still be able to realise
an advance in simulation time, the eventRoutine
may schedule one or more other
events to occur in the future.
Modifier and Type | Method and Description |
---|---|
void |
removeEvent()
Removes this event from the list of future events.
|
void |
schedule(E entity,
double delay)
Schedules this event to occur in
delay simulated time units. |
double |
scheduledAtTime() |
void schedule(E entity, double delay)
delay
simulated time units.entity
- the entity which is associated with this event; null, if the event is not related
to a certain entity.delay
- the period of simulated time to wait before this event is executed.void removeEvent()
double scheduledAtTime()