Class EventList
java.lang.Object
simu.framework.EventList
The EventList class represents a list of events in the simulation.
It contains a priority queue of events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified event to the list.doubleGets the time of the next event in the list.remove()Removes and returns the next event in the list.
-
Constructor Details
-
EventList
public EventList()Constructs an empty EventList.
-
-
Method Details
-
remove
Removes and returns the next event in the list.- Returns:
- the next event in the list
-
add
-
getNextTime
public double getNextTime()Gets the time of the next event in the list.- Returns:
- the time of the next event
-