Class CTRLHandler


public class CTRLHandler extends GRHandler
CTRLHandler Class
  • 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 Number type.
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 Number type.
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • getLowerCrtlLimit

      public static Number getLowerCrtlLimit(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.
      Parameters:
      dbr -
      Returns:
      the lower control limit in Number type.
    • getUpperCtrlLimit

      public static Number getUpperCtrlLimit(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.
      Parameters:
      dbr -
      Returns:
      the upper control limit in Number type.
    • 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:
      getCompoundData in class GRHandler
      Parameters:
      ch - the CA channel
      Returns:
      DBR
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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