Class SimEventMethodCall

  • All Implemented Interfaces:
    Comparable<SimEvent>, Runnable

    public final class SimEventMethodCall
    extends SimEvent
    This class is used internally by #scheduleAt(double,int,Runnable) to run a certain method at a particular simulation time.
    • Field Detail

      • isAppEvent

        public final boolean isAppEvent
    • Constructor Detail

      • SimEventMethodCall

        public SimEventMethodCall​(double time,
                                  int prio,
                                  String description,
                                  Runnable method)
      • SimEventMethodCall

        public SimEventMethodCall​(double time,
                                  int prio,
                                  String description,
                                  Runnable method,
                                  boolean isAppEvent)
    • Method Detail

      • handle

        public void handle()
        Description copied from class: SimEvent
        Override this method to implement the actual functionality.
        Specified by:
        handle in class SimEvent
      • isAppEvent

        public boolean isAppEvent()
        Description copied from class: SimEvent
        An application event is the usual event type in a simulation. A simulation is terminated if the event queue is empty or does not contain any application events (i.e. isAppEvent() of all events in the queue returns false).
        Overrides:
        isAppEvent in class SimEvent