|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.commonreality.time.impl.net.NetworkedSetableClock
public class NetworkedSetableClock
| Constructor Summary | |
|---|---|
NetworkedSetableClock(IParticipant participant)
|
|
| Method Summary | |
|---|---|
double |
getTime()
|
void |
setCurrentTimeCommand(ITimeCommand timeCommand)
|
double |
waitForChange()
wait for any change of time |
double |
waitForTime(double time)
wait for this time to be reached, returning the current time |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkedSetableClock(IParticipant participant)
| Method Detail |
|---|
public double getTime()
getTime in interface IClockIClock.getTime()
public double waitForChange()
throws java.lang.InterruptedException
IClock
waitForChange in interface IClockjava.lang.InterruptedExceptionIClock.waitForChange()
public double waitForTime(double time)
throws java.lang.InterruptedException
IClock
waitForTime in interface IClockjava.lang.InterruptedExceptionIClock.waitForTime(double)public void setCurrentTimeCommand(ITimeCommand timeCommand)
setCurrentTimeCommand in interface INetworkedClock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||