|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.commonreality.time.impl.BasicClock
public class BasicClock
| Constructor Summary | |
|---|---|
BasicClock()
|
|
| Method Summary | |
|---|---|
void |
await(long maxWait)
wait on the signal.. |
double |
getTime()
|
double |
setTime(double time)
set the time and signal |
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 BasicClock()
| 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 await(long maxWait)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic double setTime(double time)
setTime in interface ISetableClocktime -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||