gov.sns.ca
Class ChannelTimeRecord

java.lang.Object
  |
  +--gov.sns.ca.ChannelRecord
        |
        +--gov.sns.ca.ChannelStatusRecord
              |
              +--gov.sns.ca.ChannelTimeRecord

public class ChannelTimeRecord
extends ChannelStatusRecord

ChannelTimeRecord is a wrapper for channel data that has a value along with status information and a time stamp.


Field Summary
protected  Timestamp timestamp
           
 
Fields inherited from class gov.sns.ca.ChannelStatusRecord
severity, status
 
Fields inherited from class gov.sns.ca.ChannelRecord
store
 
Constructor Summary
ChannelTimeRecord(TimeAdaptor adaptor)
          Creates new ChannelTimeRecord
 
Method Summary
 Timestamp getTimestamp()
          Get the timestamp.
 double timeStampInSeconds()
          Get the time stamp in seconds since the Java epoch epoch.
 java.lang.String toString()
          Override the inherited method to return a description of this object.
 
Methods inherited from class gov.sns.ca.ChannelStatusRecord
severity, status
 
Methods inherited from class gov.sns.ca.ChannelRecord
byteArray, byteValue, byteValueAt, doubleArray, doubleValue, doubleValueAt, floatArray, floatValue, floatValueAt, getCount, getType, intArray, intValue, intValueAt, shortArray, shortValue, shortValueAt, stringArray, stringValue, stringValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

protected Timestamp timestamp
Constructor Detail

ChannelTimeRecord

public ChannelTimeRecord(TimeAdaptor adaptor)
Creates new ChannelTimeRecord

Method Detail

getTimestamp

public Timestamp getTimestamp()
Get the timestamp.

Returns:
the timestamp

timeStampInSeconds

public double timeStampInSeconds()
Get the time stamp in seconds since the Java epoch epoch. Some precision is lost as we move away from the epoch since the double precision number cannot hold the full native precision.

Returns:
The time stamp in seconds as a double.

toString

public java.lang.String toString()
Override the inherited method to return a description of this object.

Overrides:
toString in class ChannelStatusRecord
Returns:
A description of this object.