Class SimEvent

    • Constructor Detail

      • SimEvent

        public SimEvent​(double time,
                        int prio)
      • SimEvent

        public SimEvent​(double time,
                        int prio,
                        String description)
    • Method Detail

      • run

        public final void run()
        Specified by:
        run in interface Runnable
      • handle

        public abstract void handle()
        Override this method to implement the actual functionality.
      • setTime

        public void setTime​(double time)
      • getTime

        public double getTime()
      • getPrio

        public int getPrio()
      • setPrio

        public void setPrio​(int newPrio)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String newDescription)
      • isAppEvent

        public boolean isAppEvent()
        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).