Class STSHandler

Direct Known Subclasses:
GRHandler, TIMEHandler

public class STSHandler extends CompoundDataTypeHandler
  • 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 in Status.
      Parameters:
      ch - the CA Channel
      Returns:
      the Alarm Status of this channel
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 using dbr.isSTS() The Status are listed in Status.
      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 using dbr.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:
      getCompoundData in class CompoundDataTypeHandler
      Parameters:
      ch - channel
      Returns:
      a compound DBR value
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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