Package gda.epics.connection
Class STSHandler
java.lang.Object
gda.epics.connection.CompoundDataTypeHandler
gda.epics.connection.STSHandler
- Direct Known Subclasses:
GRHandler,TIMEHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected gov.aps.jca.dbr.DBRgetCompoundData(gov.aps.jca.Channel ch) returns a compound DBR value of this channel, including value, alarm status and alarm severity.gov.aps.jca.dbr.SeveritygetSeverity(gov.aps.jca.Channel ch) returns the Alarm Severity of this channel directly from EPICS server.static gov.aps.jca.dbr.SeveritygetSeverity(gov.aps.jca.dbr.DBR dbr) returns the Alarm Severity of this Compound DBR.gov.aps.jca.dbr.StatusgetStatus(gov.aps.jca.Channel ch) returns the Alarm Status of this channel directly from EPICS server.static gov.aps.jca.dbr.StatusgetStatus(gov.aps.jca.dbr.DBR dbr) returns the Alarm Status of this compound BDR.static gov.aps.jca.dbr.DBRTypegetSTSType(gov.aps.jca.Channel ch) returns the STS DBRType of the channel that corresponds to its native primiary type.
-
Constructor Details
-
STSHandler
public STSHandler()
-
-
Method Details
-
getStatus
public gov.aps.jca.dbr.Status getStatus(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the Alarm Status of this channel directly from EPICS server. The Status are listed inStatus.- Parameters:
ch- the CA Channel- Returns:
- the Alarm Status of this channel
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getSeverity
public gov.aps.jca.dbr.Severity getSeverity(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException returns the Alarm Severity of this channel directly from EPICS server. There are four severity level for each alarm in EPICS: INVALID_ALARM, MAJOR_ALARM, MINOR_ALARM, NO_ALARM. Based on the alarm severity different responses can be implemented.- Parameters:
ch- the CA channel- Returns:
- the Alarm severity of this channel
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getStatus
public static gov.aps.jca.dbr.Status getStatus(gov.aps.jca.dbr.DBR dbr) returns the Alarm Status of this compound BDR. Before call this method one must test the DBR type of dbr is at least STS usingdbr.isSTS()The Status are listed inStatus.- Parameters:
dbr- the compound BDR value- Returns:
- the Alarm Status of this dbr
-
getSeverity
public static gov.aps.jca.dbr.Severity getSeverity(gov.aps.jca.dbr.DBR dbr) returns the Alarm Severity of this Compound DBR. Before call this method one must test the DBR type of dbr is at least STS usingdbr.isSTS()- Parameters:
dbr- the compound DBR value- Returns:
- the Alarm severity of the given 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 this channel, including value, alarm status and alarm severity. implements the abstract base class method.- Specified by:
getCompoundDatain classCompoundDataTypeHandler- Parameters:
ch- channel- Returns:
- a compound DBR value
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getSTSType
public static gov.aps.jca.dbr.DBRType getSTSType(gov.aps.jca.Channel ch) returns the STS 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 STS DBRType, i.e. DBR_STS_XXXX
-