Package xal.ca
Class ChannelTimeRecordImpl
java.lang.Object
xal.ca.ChannelRecordImpl
xal.ca.ChannelStatusRecordImpl
xal.ca.ChannelTimeRecordImpl
- All Implemented Interfaces:
ChannelRecord
,ChannelStatusRecord
,ChannelTimeRecord
ChannelTimeRecord is a wrapper for channel data that has a value along with
status information and a time stamp.
- Author:
- tap
-
Field Summary
FieldsFields inherited from class xal.ca.ChannelStatusRecordImpl
severity, status
Fields inherited from class xal.ca.ChannelRecordImpl
store
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the timestamp.double
Get the time stamp in seconds since the Java epoch epoch.toString()
Override the inherited method to return a description of this object.Methods inherited from class xal.ca.ChannelStatusRecordImpl
severity, status
Methods inherited from class xal.ca.ChannelRecordImpl
applyTransform, arrayValue, byteArray, byteValue, byteValueAt, doubleArray, doubleValue, doubleValueAt, floatArray, floatValue, floatValueAt, getCount, getType, intArray, intValue, intValueAt, longArray, longValue, longValueAt, shortArray, shortValue, shortValueAt, stringArray, stringValue, stringValueAt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface xal.ca.ChannelRecord
applyTransform, arrayValue, byteArray, byteValue, byteValueAt, doubleArray, doubleValue, doubleValueAt, floatArray, floatValue, floatValueAt, getCount, getType, intArray, intValue, intValueAt, longArray, longValue, longValueAt, shortArray, shortValue, shortValueAt, stringArray, stringValue, stringValueAt
Methods inherited from interface xal.ca.ChannelStatusRecord
severity, status
-
Field Details
-
timestamp
-
-
Constructor Details
-
ChannelTimeRecordImpl
Creates new ChannelTimeRecord- Parameters:
adaptor
- from which to generate the record
-
-
Method Details
-
getTimestamp
Get the timestamp.- Specified by:
getTimestamp
in interfaceChannelTimeRecord
- 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.- Specified by:
timeStampInSeconds
in interfaceChannelTimeRecord
- Returns:
- The time stamp in seconds as a double.
-
toString
Override the inherited method to return a description of this object.- Specified by:
toString
in interfaceChannelRecord
- Overrides:
toString
in classChannelStatusRecordImpl
- Returns:
- A description of this object.
-