Package gda.epics.connection
Class CTRLHandler
java.lang.Object
gda.epics.connection.CompoundDataTypeHandler
gda.epics.connection.STSHandler
gda.epics.connection.GRHandler
gda.epics.connection.CTRLHandler
CTRLHandler 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, units, display precision, graphic limits, and control limits implements the abstract base class method.static gov.aps.jca.dbr.DBRTypegetCTRLType(gov.aps.jca.Channel ch) returns the CTRL DBRType of the channel that corresponds to its native primiary type.getLowerCrtlLimit(gov.aps.jca.Channel ch) a generic method returning the lower control limit of the channel directly from EPICS server via compound DBR_CTRL type.static NumbergetLowerCrtlLimit(gov.aps.jca.dbr.DBR dbr) a generic method returning the lower control limit of the DBR if the DBR request is of the CTRL type.getUpperCtrlLimit(gov.aps.jca.Channel ch) a generic method returning the upper control limit of the channel directly from EPICS server via compound DBR_CTRL type.static NumbergetUpperCtrlLimit(gov.aps.jca.dbr.DBR dbr) a generic method returning the upper control limit of the DBR if the DBR is of the type CTRL.Methods inherited from class gda.epics.connection.GRHandler
getGRType, getLowerAlarmLimit, getLowerAlarmLimit, getLowerDispLimit, getLowerDispLimit, getLowerWarningLimit, getLowerWarningLimit, getUnits, getUnits, getUpperAlarmLimit, getUpperAlarmLimit, getUpperDispLimit, getUpperDispLimit, getUpperWarningLimit, getUpperWarningLimitMethods inherited from class gda.epics.connection.STSHandler
getSeverity, getSeverity, getStatus, getStatus, getSTSType
-
Method Details
-
getLowerCrtlLimit
public Number getLowerCrtlLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException a generic method returning the lower control limit of the channel directly from EPICS server via compound DBR_CTRL type.- Parameters:
ch- the CA channel- Returns:
- the lower control limit in
Numbertype. - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getUpperCtrlLimit
public Number getUpperCtrlLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException a generic method returning the upper control limit of the channel directly from EPICS server via compound DBR_CTRL type.- Parameters:
ch- the CA channel- Returns:
- the upper control limit in
Numbertype. - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getLowerCrtlLimit
a generic method returning the lower control limit of the DBR if the DBR request is of the CTRL type.- Parameters:
dbr-- Returns:
- the lower control limit in
Numbertype.
-
getUpperCtrlLimit
a generic method returning the upper control limit of the DBR if the DBR is of the type CTRL.- Parameters:
dbr-- Returns:
- the upper control limit in
Numbertype.
-
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, units, display precision, graphic limits, and control limits implements the abstract base class method.- Overrides:
getCompoundDatain classGRHandler- Parameters:
ch- the CA channel- Returns:
- DBR
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getCTRLType
public static gov.aps.jca.dbr.DBRType getCTRLType(gov.aps.jca.Channel ch) returns the CTRL 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 DBR type name for CTRL, i.e. DBR_CTRL_XXXX
-