public final class TimeServerQueue extends java.util.Observable implements TimeServer
Constructor and Description |
---|
TimeServerQueue() |
Modifier and Type | Method and Description |
---|---|
double |
currentTime() |
void |
enqueue(double waketime,
Agent agent) |
void |
run(double duration) |
java.lang.String |
toString() |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addObserver, deleteObserver
public TimeServerQueue()
public java.lang.String toString()
toString
in class java.lang.Object
public double currentTime()
currentTime
in interface TimeServer
public void enqueue(double waketime, Agent agent) throws java.lang.IllegalArgumentException
enqueue
in interface TimeServer
java.lang.IllegalArgumentException
public void run(double duration)
run
in interface TimeServer