public class NetworkedSetableClock extends BasicClock implements IClock, INetworkedClock
BasicClock.IClockWaiter, BasicClock.WaitFor
Modifier and Type | Field and Description |
---|---|
protected double |
_epsilonCreap |
_lock, _timeChangeCondition
Constructor and Description |
---|
NetworkedSetableClock(IParticipant participant) |
Modifier and Type | Method and Description |
---|---|
protected BasicClock.WaitFor |
createWaitForAny() |
protected BasicClock.WaitFor |
createWaitForTime() |
protected boolean |
requestTime(double time)
within the waitForTime() or waitForChange(), when the thread should block,
this is called before the actual block, allowing extenders to send out
requests for time updates, if necessary.
|
void |
setCurrentTimeCommand(ITimeCommand timeCommand) |
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
public NetworkedSetableClock(IParticipant participant)
protected BasicClock.WaitFor createWaitForTime()
createWaitForTime
in class BasicClock
protected BasicClock.WaitFor createWaitForAny()
createWaitForAny
in class BasicClock
protected boolean requestTime(double time)
BasicClock
requestTime
in class BasicClock
time
- NaN if waitForChange was calledpublic void setCurrentTimeCommand(ITimeCommand timeCommand)
setCurrentTimeCommand
in interface INetworkedClock