Class SystemEvent

java.lang.Object
microsim.event.Event
microsim.event.SystemEvent
All Implemented Interfaces:
Comparable<Event>

public class SystemEvent extends Event
System events are directly processed by the simulation engine. There are some special events that engine is able to understand. For instance, you can schedule the end of simulation using a system event SystemEventType.END by passing it to EventQueue.
  • Constructor Details

  • Method Details

    • fireEvent

      public void fireEvent() throws SimulationException
      Triggers the event based on its type
      Specified by:
      fireEvent in class Event
      Throws:
      SimulationException - when the engine fails to progress current simulation.
    • toString

      @NonNull public @NonNull String toString()
      Converts this system event to a string.
      Overrides:
      toString in class Object
      Returns:
      the string representation of an event.