public final class TimeServerLinked extends java.lang.Object implements TimeServer
Constructor and Description |
---|
TimeServerLinked() |
Modifier and Type | Method and Description |
---|---|
long |
currentTime() |
void |
enqueue(long waketime,
Agent agent) |
void |
run(int duration) |
java.lang.String |
toString() |
public TimeServerLinked()
public java.lang.String toString()
toString
in class java.lang.Object
public long currentTime()
currentTime
in interface TimeServer
public void enqueue(long waketime, Agent agent) throws java.lang.IllegalArgumentException
enqueue
in interface TimeServer
java.lang.IllegalArgumentException
public void run(int duration)
run
in interface TimeServer