gov.nasa.gsfc.drl.rtstps.core.fs.clock
Class FrameClock3

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.fs.clock.FrameClock3
All Implemented Interfaces:
FrameClock

 class FrameClock3
extends java.lang.Object
implements FrameClock

A FrameClock. The session start may be a set time or the current time. The user wants a forced time step size between frames.


Field Summary
private  long current
           
private  long epoch
           
private  long step
           
private  boolean useNow
           
 
Constructor Summary
FrameClock3(java.util.Date epoch, java.util.Date sessionStart, long step)
           
 
Method Summary
 long getTimeStamp()
          Get a timestamp.
 void start()
          Start the clock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epoch

private long epoch

step

private long step

current

private long current

useNow

private boolean useNow
Constructor Detail

FrameClock3

FrameClock3(java.util.Date epoch,
            java.util.Date sessionStart,
            long step)
Method Detail

start

public void start()
Description copied from interface: FrameClock
Start the clock. This is really only important for clocks that use the current time.

Specified by:
start in interface FrameClock

getTimeStamp

public long getTimeStamp()
Description copied from interface: FrameClock
Get a timestamp. For some clocks you must call this method to advance the time.

Specified by:
getTimeStamp in interface FrameClock