public class SharedClock extends OwnedClock<java.lang.Thread>
BasicClock.IClockWaiter, BasicClock.WaitFor
_lock, _timeChangeCondition
Constructor and Description |
---|
SharedClock() |
Modifier and Type | Method and Description |
---|---|
protected BasicClock.WaitFor |
createWaitForAny() |
protected BasicClock.WaitFor |
createWaitForTime() |
protected boolean |
requestTime(double requestedTime)
since this might actually set the time to the requestedTime, the return
value varies.
|
addOwner, getOwners, isOwner, removeOwner, setInvalidAccessThrowsException, setTime, updateTime
await, constrainPrecision, getDefaultWaitTime, getTime, getTimeShift, getTimeSlipTolerance, getWaitForAny, getWaitForTime, isIgnoringDiscrepencies, setDefaultWaitTime, setIgnoreDiscrepencies, setTime, setTimeInternal, setTimeShift, setTimeSlipTolerance, waitForChange, waitForTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTime, getTimeShift, setTimeShift, waitForChange, waitForTime
protected BasicClock.WaitFor createWaitForTime()
createWaitForTime
in class BasicClock
protected BasicClock.WaitFor createWaitForAny()
createWaitForAny
in class BasicClock
protected boolean requestTime(double requestedTime) throws java.lang.InterruptedException
requestTime
in class BasicClock
requestedTime
- NaN if waitForChange was calledjava.lang.InterruptedException