Package xal.plugin.epics7
Class Epics7ChannelTimeRecord
java.lang.Object
xal.ca.ChannelRecordImpl
xal.plugin.epics7.Epics7ChannelRecord
xal.plugin.epics7.Epics7ChannelStatusRecord
xal.plugin.epics7.Epics7ChannelTimeRecord
- All Implemented Interfaces:
ChannelRecord
,ChannelStatusRecord
,ChannelTimeRecord
ChannelTimeRecord implementation for Epics7.
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@ess.eu>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected Timestamp
static final String
Fields inherited from class xal.plugin.epics7.Epics7ChannelStatusRecord
ALARM_FIELD_NAME, severity, SEVERITY_FIELD_NAME, status, STATUS_FIELD_NAME
Fields inherited from class xal.plugin.epics7.Epics7ChannelRecord
fieldName, pvStructureStore, VALUE_FIELD_NAME
Fields inherited from class xal.ca.ChannelRecordImpl
store
-
Constructor Summary
ConstructorsConstructorDescriptionEpics7ChannelTimeRecord
(org.epics.pvdata.pv.PVStructure pvStructure) Creates new Epics7ChannelStatusRecord -
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.plugin.epics7.Epics7ChannelStatusRecord
severity, status
Methods inherited from class xal.plugin.epics7.Epics7ChannelRecord
applyTransform, arrayValue, byteArray, byteValue, byteValueAt, doubleArray, doubleValue, doubleValueAt, floatArray, floatValue, floatValueAt, getCount, getCountArray, getFieldName, getStore, 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
-
TIMESTAMP_FIELD_NAME
- See Also:
-
SECONDS_FIELD_NAME
- See Also:
-
NANOSECONDS_FIELD_NAME
- See Also:
-
-
Constructor Details
-
Epics7ChannelTimeRecord
public Epics7ChannelTimeRecord(org.epics.pvdata.pv.PVStructure pvStructure) Creates new Epics7ChannelStatusRecord- Parameters:
pvStructure
-
-
-
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 classEpics7ChannelStatusRecord
- Returns:
- A description of this object.
-