public class OwnedClock<T> extends BasicClock implements IOwnableClock<T>
BasicClock.IClockWaiter, BasicClock.WaitFor
_lock, _timeChangeCondition
Constructor and Description |
---|
OwnedClock() |
Modifier and Type | Method and Description |
---|---|
void |
addOwner(T owner) |
java.util.Collection<T> |
getOwners() |
boolean |
isOwner(T owner) |
void |
removeOwner(T owner) |
void |
setInvalidAccessThrowsException(boolean throwIt) |
double |
setTime(T owner,
double requestedTime) |
protected double |
updateTime()
update the clock..
|
await, constrainPrecision, createWaitForAny, createWaitForTime, getDefaultWaitTime, getTime, getTimeShift, getTimeSlipTolerance, getWaitForAny, getWaitForTime, isIgnoringDiscrepencies, requestTime, 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 void setInvalidAccessThrowsException(boolean throwIt)
public void addOwner(T owner)
addOwner
in interface IOwnableClock<T>
IOwnableClock.addOwner(java.lang.Object)
public java.util.Collection<T> getOwners()
getOwners
in interface IOwnableClock<T>
IOwnableClock.getOwners()
public boolean isOwner(T owner)
isOwner
in interface IOwnableClock<T>
IOwnableClock.isOwner(java.lang.Object)
public void removeOwner(T owner)
removeOwner
in interface IOwnableClock<T>
IOwnableClock.removeOwner(java.lang.Object)
public double setTime(T owner, double requestedTime)
owner
- requestedTime
- protected double updateTime()