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, statusFields inherited from class xal.ca.ChannelRecordImpl
store -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the timestamp.doubleGet 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, statusMethods 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, stringValueAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, stringValueAtMethods 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:
getTimestampin 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:
timeStampInSecondsin interfaceChannelTimeRecord- Returns:
- The time stamp in seconds as a double.
-
toString
Override the inherited method to return a description of this object.- Specified by:
toStringin interfaceChannelRecord- Overrides:
toStringin classChannelStatusRecordImpl- Returns:
- A description of this object.
-