Interface ISimEvent<E extends IEntity>

  • Type Parameters:
    E - the type of the entity which is modified by this event
    All Known Implementing Classes:
    AbstractSimEventDelegator, DesmoJSimEvent, SSJSimEvent

    public interface ISimEvent<E extends IEntity>
    A simulated event, which can be scheduled to occur at a specific point in time in the simulated future. When reaching the specified simulated time instant, the eventRoutine method is being executed. In this way, this class supports the so-called event-scheduling simulation modelling.

    No simulated time may pass in the eventRoutine. In order to still be able to realise an advance in simulation time, the eventRoutine may schedule one or more other events to occur in the future.

    • Method Detail

      • schedule

        void schedule​(E entity,
                      double delay)
        Schedules this event to occur in delay simulated time units.
        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

        void removeEvent()
        Removes this event from the list of future events.
      • scheduledAtTime

        double scheduledAtTime()