Class TIMEHandler


public class TIMEHandler extends STSHandler
TIMEHandler Class
  • Method Details

    • getTimeStamp

      public gov.aps.jca.dbr.TimeStamp getTimeStamp(gov.aps.jca.Channel ch) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      returns a timestamp for the channel request directly from EPICS server via compound DBR_TIME_XXXX.
      Parameters:
      ch - the CA channel
      Returns:
      timestamp of the channel request
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • getTimeStamp

      public static gov.aps.jca.dbr.TimeStamp getTimeStamp(gov.aps.jca.dbr.DBR dbr)
      returns a timestamp for the DBR if the DBR is of the tyep TIME.
      Parameters:
      dbr - the coumpound DBR value
      Returns:
      timestamp of the compound 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 the channel, including value, alarm status, alarm severity, timestamp. 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
    • getTIMEType

      public static gov.aps.jca.dbr.DBRType getTIMEType(gov.aps.jca.Channel ch)
      returns the TIME 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 TIME DBRType, i.e. DBR_TIME_XXXX