Package gda.epics.connection
Class TIMEHandler
java.lang.Object
gda.epics.connection.CompoundDataTypeHandler
gda.epics.connection.STSHandler
gda.epics.connection.TIMEHandler
TIMEHandler Class
-
Method Summary
Modifier and TypeMethodDescriptionprotected gov.aps.jca.dbr.DBRgetCompoundData(gov.aps.jca.Channel ch) returns a compound DBR value of the channel, including value, alarm status, alarm severity, timestamp.gov.aps.jca.dbr.TimeStampgetTimeStamp(gov.aps.jca.Channel ch) returns a timestamp for the channel request directly from EPICS server via compound DBR_TIME_XXXX.static gov.aps.jca.dbr.TimeStampgetTimeStamp(gov.aps.jca.dbr.DBR dbr) returns a timestamp for the DBR if the DBR is of the tyep TIME.static gov.aps.jca.dbr.DBRTypegetTIMEType(gov.aps.jca.Channel ch) returns the TIME DBRType of the channel that corresponds to its native primiary type.Methods inherited from class gda.epics.connection.STSHandler
getSeverity, getSeverity, getStatus, getStatus, getSTSType
-
Method Details
-
getTimeStamp
public gov.aps.jca.dbr.TimeStamp getTimeStamp(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns a timestamp for the channel request directly from EPICS server via compound DBR_TIME_XXXX.- Parameters:
ch- the CA channel- Returns:
- timestamp of the channel request
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getTimeStamp
public static gov.aps.jca.dbr.TimeStamp getTimeStamp(gov.aps.jca.dbr.DBR dbr) returns a timestamp for the DBR if the DBR is of the tyep TIME.- Parameters:
dbr- the coumpound DBR value- Returns:
- timestamp of the compound DBR
-
getCompoundData
protected gov.aps.jca.dbr.DBR getCompoundData(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns a compound DBR value of the channel, including value, alarm status, alarm severity, timestamp. Implements the abstract base class method.- Overrides:
getCompoundDatain classSTSHandler- Parameters:
ch- channel- Returns:
- a compound DBR value
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getTIMEType
public static gov.aps.jca.dbr.DBRType getTIMEType(gov.aps.jca.Channel ch) returns the TIME DBRType of the channel that corresponds to its native primiary type. This method ensures the automatic type conversion between primiary types is always avoided during the channel request.- Parameters:
ch- the CA channel- Returns:
- the TIME DBRType, i.e. DBR_TIME_XXXX
-