Class AbstractSimEventDelegator<E extends IEntity>
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator<E>
-
- Type Parameters:
M
- the type of the simulation modelE
- the type of the entity which is modified by this event
- All Implemented Interfaces:
ISimEvent<E>
public abstract class AbstractSimEventDelegator<E extends IEntity> extends SimulationElement implements ISimEvent<E>
- See Also:
ISimEvent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSimEventDelegator(ISimulationModel model, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 indelay
simulated time units.double
scheduledAtTime()
-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getModel, getName
-
-
-
-
Constructor Detail
-
AbstractSimEventDelegator
protected AbstractSimEventDelegator(ISimulationModel model, String name)
-
-
Method Detail
-
eventRoutine
public abstract void eventRoutine(E who)
Executes the simulation logic associated with this event.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.
- Parameters:
who
- the entity associated with this event
-
schedule
public void schedule(E entity, double delay)
Schedules this event to occur indelay
simulated time units.
-
removeEvent
public void removeEvent()
Removes this event from the list of future events.- Specified by:
removeEvent
in interfaceISimEvent<E extends IEntity>
-
scheduledAtTime
public double scheduledAtTime()
- Specified by:
scheduledAtTime
in interfaceISimEvent<E extends IEntity>
-
-