|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.commonreality.time.impl.BasicClock
org.commonreality.time.impl.OwnedClock<java.lang.Thread>
org.commonreality.time.impl.SharedClock
public class SharedClock
| Constructor Summary | |
|---|---|
SharedClock()
|
|
| Method Summary | |
|---|---|
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 org.commonreality.time.impl.OwnedClock |
|---|
addOwner, getOwners, isOwner, removeOwner, setTime, setTime |
| Methods inherited from class org.commonreality.time.impl.BasicClock |
|---|
await, getTime |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.commonreality.time.IClock |
|---|
getTime |
| Constructor Detail |
|---|
public SharedClock()
| Method Detail |
|---|
public double waitForTime(double time)
throws java.lang.InterruptedException
IClock
waitForTime in interface IClockwaitForTime in class BasicClockjava.lang.InterruptedExceptionIClock.waitForTime(double)
public double waitForChange()
throws java.lang.InterruptedException
IClock
waitForChange in interface IClockwaitForChange in class BasicClockjava.lang.InterruptedExceptionIClock.waitForChange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||