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 model
E - the type of the entity which is modified by this event
All Implemented Interfaces:
ISimEvent<E>, ISimRunnable<E>

public abstract class AbstractSimEventDelegator<E extends IEntity> extends SimulationElement implements ISimEvent<E>, ISimRunnable<E>
See Also:
  • Constructor Details

  • Method Details

    • schedule

      public void schedule(E entity, double delay)
      Schedules this event to occur in delay simulated time units.
      Specified by:
      schedule in interface ISimEvent<E extends IEntity>
      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

      public void removeEvent()
      Removes this event from the list of future events.
      Specified by:
      removeEvent in interface ISimEvent<E extends IEntity>
    • scheduledAtTime

      public double scheduledAtTime()
      Specified by:
      scheduledAtTime in interface ISimEvent<E extends IEntity>