Class DesmoJSimEvent<E extends IEntity>

  • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 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()  
      • 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
    • Method Detail

      • 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>