|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinput.ScheduledUpdatesQueue
public class ScheduledUpdatesQueue
Event queue where simulation objects can request an update to happen at the specified simulation time. Multiple updates at the same time are merged to a single update.
| Constructor Summary | |
|---|---|
ScheduledUpdatesQueue()
Constructor. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledUpdatesQueue()
| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||