Interface ISimRunnable<E extends IEntity>

Type Parameters:
E -
All Known Implementing Classes:
AbstractSimEventDelegator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ISimRunnable<E extends IEntity>
This interface captures a runnable which is triggered by a simulation event. It has been factored out from AbstractSimEventDelegator in an effort to reduce the required coupling between simulation entity IEntity and simulation event ISimEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the simulation logic associated with this event.
  • Method Details

    • eventRoutine

      void eventRoutine(E who)
      Executes the simulation logic associated with this event.

      Notice, that this method is not intended to be called by clients. Instead, the event scheduler of the respective simulation library invokes this method as soon as the simulation is reached at which the event has been scheduled.

      Parameters:
      who - the entity associated with this event