javax.realtime.DSS
Class SimulationClock

java.lang.Object
  extended byjavax.realtime.Clock
      extended byjavax.realtime.DSS.SimulationClock

public class SimulationClock
extends Clock

Author:
gary

Constructor Summary
SimulationClock()
          Void constructor.
 
Method Summary
 RelativeTime getResolution()
          Return the resolution of the clock -- the interval between two ticks.
 AbsoluteTime getTime()
          Return the current time in a freshly allocated object.
 void getTime(AbsoluteTime time)
          Returns the current time in an existing object.
 void setResolution(RelativeTime resolution)
          Set the resolution of this.
 void setTime(AbsoluteTime time)
           
 
Methods inherited from class javax.realtime.Clock
getRealtimeClock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationClock

public SimulationClock()
Void constructor.

Method Detail

getResolution

public RelativeTime getResolution()
Return the resolution of the clock -- the interval between two ticks.

Specified by:
getResolution in class Clock
Returns:
A RelativeTime representing the resolution of this.

getTime

public AbsoluteTime getTime()
Return the current time in a freshly allocated object.

Overrides:
getTime in class Clock
Returns:
An AbsoluteTime object representing the current time.

getTime

public void getTime(AbsoluteTime time)
Returns the current time in an existing object. The time represented by the given AbsoluteTime is changed to some time between the invocation of the method and the return of the method.

Specified by:
getTime in class Clock
Parameters:
time - The AbsoluteTime object which will have its time changed. If null, then nothing happens.

setResolution

public void setResolution(RelativeTime resolution)
Description copied from class: Clock
Set the resolution of this. For some hardware clocks setting resolution is impossible and if called on those nothing happens.

Specified by:
setResolution in class Clock
Parameters:
resolution -

setTime

public void setTime(AbsoluteTime time)
Parameters:
time -