Class SSJSimEvent<E extends IEntity>

java.lang.Object
umontreal.ssj.simevents.Event
org.palladiosimulator.simulation.abstractsimengine.ssj.SSJSimEvent<E>
Type Parameters:
E - the type of the entity which is modified by this event
All Implemented Interfaces:
ISimEvent<E>, Comparable<umontreal.ssj.simevents.Event>

public class SSJSimEvent<E extends IEntity> extends umontreal.ssj.simevents.Event implements ISimEvent<E>
  • Field Summary

    Fields inherited from class umontreal.ssj.simevents.Event

    eventTime, priority, sim
  • Constructor Summary

    Constructors
    Constructor
    Description
    SSJSimEvent(ISimRunnable<E> myEvent, SSJExperiment simControl, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The event handler, which is called by SSJ when an event occurred.
    void
    Removes this event from the list of future events.
    void
    schedule(E resource, double delay)
    Schedules this event to occur in delay simulated time units.
    double
     

    Methods inherited from class umontreal.ssj.simevents.Event

    cancel, cancel, compareTo, getRa, priority, reschedule, schedule, scheduleAfter, scheduleBefore, scheduleNext, setPriority, setRa, setSimulator, setTime, simulator, time

    Methods inherited from class java.lang.Object

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

  • Method Details

    • actions

      public void actions()
      The event handler, which is called by SSJ when an event occurred.

      Specified by:
      actions in class umontreal.ssj.simevents.Event
      See Also:
      • Event.actions()
    • schedule

      public void schedule(E resource, 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:
      resource - 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>