Package xal.ca
Interface ChannelTimeRecord
- All Superinterfaces:
ChannelRecord
,ChannelStatusRecord
- All Known Implementing Classes:
ChannelTimeRecordImpl
,Epics7ChannelTimeRecord
ChannelTimeRecord is a wrapper for channel data that has a value along with
status information and a time stamp.
- Author:
- tap
-
Method Summary
Modifier and TypeMethodDescriptionGet the timestamp.double
Get the time stamp in seconds since the Java epoch epoch.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, toString
Methods inherited from interface xal.ca.ChannelStatusRecord
severity, status
-
Method Details
-
getTimestamp
Timestamp getTimestamp()Get the timestamp.- Returns:
- the timestamp
-
timeStampInSeconds
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.
-