M - the type of the simulation modelE - the type of the entity which is modified by this eventpublic abstract class AbstractSimEventDelegator<E extends IEntity> extends SimulationElement implements ISimEvent<E>
ISimEvent| Modifier and Type | Method and Description |
|---|---|
abstract void |
eventRoutine(E who)
Executes the simulation logic associated with this event.
|
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() |
getModel, getNamepublic abstract void eventRoutine(E who)
Notice, that this method is not intended to be called by clients. Instead, the event scheduler of the respective simulation library invokes this method as soon as the simulation is reached at which the event has been scheduled.
who - the entity associated with this eventpublic void schedule(E entity, double delay)
delay simulated time units.public void removeEvent()
removeEvent in interface ISimEvent<E extends IEntity>public double scheduledAtTime()
scheduledAtTime in interface ISimEvent<E extends IEntity>