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 protectedAbstractSimEventDelegator(ISimulationModel model, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voideventRoutine(E who)Executes the simulation logic associated with this event.voidremoveEvent()Removes this event from the list of future events.voidschedule(E entity, double delay)Schedules this event to occur indelaysimulated time units.doublescheduledAtTime()-
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 indelaysimulated time units.
-
removeEvent
public void removeEvent()
Removes this event from the list of future events.- Specified by:
removeEventin interfaceISimEvent<E extends IEntity>
-
scheduledAtTime
public double scheduledAtTime()
- Specified by:
scheduledAtTimein interfaceISimEvent<E extends IEntity>
-
-