Class DesmoJSimEvent<E extends IEntity>

java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.EventAbstract
desmoj.core.simulator.Event<desmoj.core.simulator.Entity>
de.uka.ipd.sdq.simulation.abstractsimengine.desmoj.DesmoJSimEvent<E>
All Implemented Interfaces:
ISimEvent<E>

public class DesmoJSimEvent<E extends IEntity> extends desmoj.core.simulator.Event<desmoj.core.simulator.Entity> implements ISimEvent<E>
  • Field Summary

    Fields inherited from class desmoj.core.simulator.EventAbstract

    numberOfEntities

    Fields inherited from class desmoj.core.simulator.Schedulable

    _schedule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    eventRoutine(desmoj.core.simulator.Entity who)
    The event handler, which is called by DESMO-J when an event occurred.
    void
    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
     

    Methods inherited from class desmoj.core.simulator.Event

    clone, schedule, schedule, schedule, scheduleAfter, scheduleBefore

    Methods inherited from class desmoj.core.simulator.EventAbstract

    generateTraceForScheduling, getNumberOfEntities, getRealTimeConstraint, isExternal, setRealTimeConstraint

    Methods inherited from class desmoj.core.simulator.Schedulable

    cancel, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedule, scheduledAt, scheduledNext

    Methods inherited from class desmoj.core.simulator.ModelComponent

    current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn

    Methods inherited from class desmoj.core.simulator.NamedObject

    getName, getQuotedName, toString

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • eventRoutine

      public void eventRoutine(desmoj.core.simulator.Entity who)
      The event handler, which is called by DESMO-J when an event occurred.

      Specified by:
      eventRoutine in class desmoj.core.simulator.Event<desmoj.core.simulator.Entity>
      See Also:
      • Event.eventRoutine(desmoj.core.simulator.Entity)
    • schedule

      public void schedule(E entity, double delay)
      Description copied from interface: ISimEvent
      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()
      Description copied from interface: ISimEvent
      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>