Interface ISimEvent<E extends IEntity>
-
- Type Parameters:
E
- the type of the entity which is modified by this event
- All Known Implementing Classes:
AbstractSimEventDelegator
,DesmoJSimEvent
,SSJSimEvent
public interface ISimEvent<E extends IEntity>
A simulated event, which can be scheduled to occur at a specific point in time in the simulated future. When reaching the specified simulated time instant, theeventRoutine
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, theeventRoutine
may schedule one or more other events to occur in the future.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
removeEvent()
Removes this event from the list of future events.void
schedule(E entity, double delay)
Schedules this event to occur indelay
simulated time units.double
scheduledAtTime()
-
-
-
Method Detail
-
schedule
void schedule(E entity, double delay)
Schedules this event to occur indelay
simulated time units.- Parameters:
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.
-
removeEvent
void removeEvent()
Removes this event from the list of future events.
-
scheduledAtTime
double scheduledAtTime()
-
-