Class EventList

java.lang.Object
simu.framework.EventList

public class EventList extends Object
The EventList class represents a list of events in the simulation. It contains a priority queue of events.
  • Constructor Details

    • EventList

      public EventList()
      Constructs an empty EventList.
  • Method Details

    • remove

      public Event remove()
      Removes and returns the next event in the list.
      Returns:
      the next event in the list
    • add

      public void add(Event t)
      Adds the specified event to the list.
      Parameters:
      t - the event to add
    • getNextTime

      public double getNextTime()
      Gets the time of the next event in the list.
      Returns:
      the time of the next event