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

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.fs.clock.TimeStamp

public class TimeStamp
extends java.lang.Object

This class defines how the system creates timestamp annotation for frames. It is a configuration class. It holds setup data only.


Field Summary
 java.util.Date epoch
          This field defines the epoch time.
private static java.text.SimpleDateFormat sdf
           
 java.util.Date sessionStart
          This is the session start time.
 long stepsize
          Normally the time difference between frames will be real time, after adjusting for epoch and the session start time.
 
Constructor Summary
TimeStamp()
           
 
Method Summary
 void load(org.w3c.dom.Element element)
          Load fields from an XML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epoch

public java.util.Date epoch
This field defines the epoch time. All timestamps will be marked as an offset from this epoch time. The default is Aug 10, 1995 00:00:00.


sessionStart

public java.util.Date sessionStart
This is the session start time. Leave this field blank if you want the scenario start time to be the current wall clock time. If you set this field, then the frame annotation timetags will show that the session occurred at your selected date and time.


stepsize

public long stepsize
Normally the time difference between frames will be real time, after adjusting for epoch and the session start time. If you set this field to a positive value, then the annotation timestamps of successive frames will differ by this step size (in milliseconds), and the wall clock is ignored. For example, if you set stepsize to 100, then each frame's time will differ from the preceding one by 100 milliseconds. Warning: The frame synchronizer will not adjust the time to account for sync dropouts, so do not rely on the step size to detect lost frames. It will adjust for flywheel frames, dropped or not, however.


sdf

private static java.text.SimpleDateFormat sdf
Constructor Detail

TimeStamp

public TimeStamp()
Method Detail

load

public void load(org.w3c.dom.Element element)
          throws RtStpsException
Load fields from an XML element.

Throws:
RtStpsException