jp.go.aist.rtm.RTC.util.clock
Class AdjustedClock

java.lang.Object
  extended by jp.go.aist.rtm.RTC.util.clock.SystemClock
      extended by jp.go.aist.rtm.RTC.util.clock.AdjustedClock
All Implemented Interfaces:
IClock

public class AdjustedClock
extends SystemClock

Clock object to handle adjusted clock

This class stores a offset time with current system clock when settime(), and gettime() returns adjusted clock by the offset.


Field Summary
 
Fields inherited from class jp.go.aist.rtm.RTC.util.clock.SystemClock
nanoBase, TIME_CONV_UNIT
 
Constructor Summary
AdjustedClock()
           
 
Method Summary
 TimeValue getTime()
           Getting time
 boolean setTime(TimeValue clocktime)
           Setting time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdjustedClock

public AdjustedClock()
Method Detail

getTime

public TimeValue getTime()
Description copied from interface: IClock
Getting time

Specified by:
getTime in interface IClock
Overrides:
getTime in class SystemClock
Returns:
Current time

setTime

public boolean setTime(TimeValue clocktime)
Description copied from interface: IClock
Setting time

Specified by:
setTime in interface IClock
Overrides:
setTime in class SystemClock
Parameters:
clocktime - clocktime Current time