Package gda.epics.connection
Class GRHandler
java.lang.Object
gda.epics.connection.CompoundDataTypeHandler
gda.epics.connection.STSHandler
gda.epics.connection.GRHandler
- Direct Known Subclasses:
CTRLHandler
GRHandler 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, and graphic limits.static gov.aps.jca.dbr.DBRTypegetGRType(gov.aps.jca.Channel ch) returns the GR DBRType of the channel that corresponds to its native primiary type.getLowerAlarmLimit(gov.aps.jca.Channel ch) returns the lower Alarm limit of this channel asNumberdirectly from EPICS server via compound DBR access.static NumbergetLowerAlarmLimit(gov.aps.jca.dbr.DBR dbr) returns the lower alarm limit of the DBR inNumbertype if the DBR is of GR type.getLowerDispLimit(gov.aps.jca.Channel ch) returns the lower display limit of this channel asNumberdirectly from EPICS server via compound DBR access.static NumbergetLowerDispLimit(gov.aps.jca.dbr.DBR dbr) returns the lower display limit of the DBR inNumbertype if the DBR is of GR type.getLowerWarningLimit(gov.aps.jca.Channel ch) returns the lower warning limit of this channel asNumberdirectly from EPICS server via compound DBR access.static NumbergetLowerWarningLimit(gov.aps.jca.dbr.DBR dbr) returns the lower warning limit of the DBR inNumbertype if the DBR is of GR type.getUnits(gov.aps.jca.Channel ch) returns the unit of this channel directly from EPICS server via compound DBR access.static StringgetUnits(gov.aps.jca.dbr.DBR dbr) returns the unit of the DBR if the DBR is of GR type.getUpperAlarmLimit(gov.aps.jca.Channel ch) returns the upper alarm limit of this channel asNumberdirectly from EPICS server via compound DBR access.static NumbergetUpperAlarmLimit(gov.aps.jca.dbr.DBR dbr) returns the upper alarm limit of the DBR asNumberif the DBR is of GR type.getUpperDispLimit(gov.aps.jca.Channel ch) returns the upper display limit of this channel asNumberdirectly from EPICS server via compound DBR access.static NumbergetUpperDispLimit(gov.aps.jca.dbr.DBR dbr) returns the upper display limit of the DBR inNumbertype if the DBR is of GR type.getUpperWarningLimit(gov.aps.jca.Channel ch) returns the upper warning limit of this channel asNumberdirectly from EPICS server via compound DBR access.static NumbergetUpperWarningLimit(gov.aps.jca.dbr.DBR dbr) returns the upper warning limit of the DBR inNumbertype if the DBR is of GR type.Methods inherited from class gda.epics.connection.STSHandler
getSeverity, getSeverity, getStatus, getStatus, getSTSType
-
Method Details
-
getUnits
public String getUnits(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the unit of this channel directly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- The Unit of this channel
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getLowerDispLimit
public Number getLowerDispLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the lower display limit of this channel asNumberdirectly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- the lower display limit, i.e. LOPR
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getUpperDispLimit
public Number getUpperDispLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the upper display limit of this channel asNumberdirectly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- the upper display limit, i.e. HOPR
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getLowerAlarmLimit
public Number getLowerAlarmLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the lower Alarm limit of this channel asNumberdirectly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- the lower alarm limit
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getUpperAlarmLimit
public Number getUpperAlarmLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the upper alarm limit of this channel asNumberdirectly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- the upper alarm limit
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getLowerWarningLimit
public Number getLowerWarningLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the lower warning limit of this channel asNumberdirectly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- the lower warning limit
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getUpperWarningLimit
public Number getUpperWarningLimit(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the upper warning limit of this channel asNumberdirectly from EPICS server via compound DBR access.- Parameters:
ch- the CA channel- Returns:
- the upper warning limit
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getUnits
returns the unit of the DBR if the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the unit string
-
getLowerDispLimit
returns the lower display limit of the DBR inNumbertype if the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the lower display limit, i.e. LOPR
-
getUpperDispLimit
returns the upper display limit of the DBR inNumbertype if the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the upper display limit, i.e. HOPR
-
getLowerAlarmLimit
returns the lower alarm limit of the DBR inNumbertype if the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the lower alarm limit
-
getUpperAlarmLimit
returns the upper alarm limit of the DBR asNumberif the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the upper alarm limit
-
getLowerWarningLimit
returns the lower warning limit of the DBR inNumbertype if the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the lower warning limit
-
getUpperWarningLimit
returns the upper warning limit of the DBR inNumbertype if the DBR is of GR type.- Parameters:
dbr- the compound GR type DBR, i.e. DBR_GR_XXXX- Returns:
- the upper warning limit.
-
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, and graphic limits. 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
-
getGRType
public static gov.aps.jca.dbr.DBRType getGRType(gov.aps.jca.Channel ch) returns the GR 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 GR DBRType, i.e. DBR_GR_XXXX
-