Class GRHandler

Direct Known Subclasses:
CTRLHandler

public class GRHandler extends STSHandler
GRHandler Class
  • 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.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 as Number directly from EPICS server via compound DBR access.
      Parameters:
      ch - the CA channel
      Returns:
      the lower display limit, i.e. LOPR
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 as Number directly from EPICS server via compound DBR access.
      Parameters:
      ch - the CA channel
      Returns:
      the upper display limit, i.e. HOPR
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 as Number directly from EPICS server via compound DBR access.
      Parameters:
      ch - the CA channel
      Returns:
      the lower alarm limit
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 as Number directly from EPICS server via compound DBR access.
      Parameters:
      ch - the CA channel
      Returns:
      the upper alarm limit
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 as Number directly from EPICS server via compound DBR access.
      Parameters:
      ch - the CA channel
      Returns:
      the lower warning limit
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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 as Number directly from EPICS server via compound DBR access.
      Parameters:
      ch - the CA channel
      Returns:
      the upper warning limit
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • getUnits

      public static String getUnits(gov.aps.jca.dbr.DBR dbr)
      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

      public static Number getLowerDispLimit(gov.aps.jca.dbr.DBR dbr)
      returns the lower display limit of the DBR in Number type 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

      public static Number getUpperDispLimit(gov.aps.jca.dbr.DBR dbr)
      returns the upper display limit of the DBR in Number type 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

      public static Number getLowerAlarmLimit(gov.aps.jca.dbr.DBR dbr)
      returns the lower alarm limit of the DBR in Number type 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

      public static Number getUpperAlarmLimit(gov.aps.jca.dbr.DBR dbr)
      returns the upper alarm limit of the DBR as Number if the DBR is of GR type.
      Parameters:
      dbr - the compound GR type DBR, i.e. DBR_GR_XXXX
      Returns:
      the upper alarm limit
    • getLowerWarningLimit

      public static Number getLowerWarningLimit(gov.aps.jca.dbr.DBR dbr)
      returns the lower warning limit of the DBR in Number type 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

      public static Number getUpperWarningLimit(gov.aps.jca.dbr.DBR dbr)
      returns the upper warning limit of the DBR in Number type 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:
      getCompoundData in class STSHandler
      Parameters:
      ch - channel
      Returns:
      a compound DBR value
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • 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