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

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

public class LogicalClock
extends java.lang.Object
implements IClock

Clock object to handle logical clock

This class sets and gets system clock. It just sets time by settime() and gets time by gettime().


Constructor Summary
LogicalClock()
           
 
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

LogicalClock

public LogicalClock()
Method Detail

getTime

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

Specified by:
getTime in interface IClock
Returns:
Current time

setTime

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

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