public class NetworkedSlaveClock extends java.lang.Object implements IClock, INetworkedClock
Constructor and Description |
---|
NetworkedSlaveClock() |
Modifier and Type | Method and Description |
---|---|
double |
getTime() |
double |
getTimeShift() |
void |
setCurrentTimeCommand(ITimeCommand timeCommand) |
void |
setTimeShift(double shift)
sets a constant for the clock to be adjusted by.
|
double |
waitForChange()
wait for any change of time
|
double |
waitForTime(double time)
wait for this time to be reached, returning the current time
|
public double getTime()
getTime
in interface IClock
IClock.getTime()
public double waitForChange() throws java.lang.InterruptedException
IClock
waitForChange
in interface IClock
java.lang.InterruptedException
IClock.waitForChange()
public double waitForTime(double time) throws java.lang.InterruptedException
IClock
waitForTime
in interface IClock
java.lang.InterruptedException
IClock.waitForTime(double)
public void setCurrentTimeCommand(ITimeCommand timeCommand)
setCurrentTimeCommand
in interface INetworkedClock
public double getTimeShift()
getTimeShift
in interface IClock
public void setTimeShift(double shift)
IClock
setTimeShift
in interface IClock