public class ScheduledUpdatesQueue extends java.lang.Object implements EventQueue
| Constructor and Description |
|---|
ScheduledUpdatesQueue()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdate(double simTime)
Add a new update request for the given time
|
ExternalEvent |
nextEvent()
Returns the next scheduled event or event with time Double.MAX_VALUE
if there aren't any.
|
double |
nextEventsTime()
Returns the next scheduled event's time or Double.MAX_VALUE if there
aren't any events left
|
java.lang.String |
toString() |
public ScheduledUpdatesQueue()
public ExternalEvent nextEvent()
nextEvent in interface EventQueuepublic double nextEventsTime()
nextEventsTime in interface EventQueuepublic void addUpdate(double simTime)
simTime - The time when the update should happenpublic java.lang.String toString()
toString in class java.lang.Object