Package xal.ca

Class ChannelStatusRecordImpl

java.lang.Object
xal.ca.ChannelRecordImpl
xal.ca.ChannelStatusRecordImpl
All Implemented Interfaces:
ChannelRecord, ChannelStatusRecord
Direct Known Subclasses:
ChannelTimeRecordImpl

public class ChannelStatusRecordImpl extends ChannelRecordImpl implements ChannelStatusRecord
ChannelStatusRecord is a wrapper for channel data that has a value along with status information.
Author:
tap
  • Field Details

    • status

      protected int status
    • severity

      protected int severity
  • Constructor Details

    • ChannelStatusRecordImpl

      public ChannelStatusRecordImpl(StatusAdaptor adaptor)
      Creates new ChannelStatusRecord
      Parameters:
      adaptor - from which to create the record
  • Method Details

    • status

      public int status()
      Get the internal status code for this data.
      Specified by:
      status in interface ChannelStatusRecord
      Returns:
      the status code for this data.
    • severity

      public int severity()
      Get the internal severity code for this data.
      Specified by:
      severity in interface ChannelStatusRecord
      Returns:
      the severity code for this data.
    • toString

      public String toString()
      Override the inherited method to return a description of this object.
      Specified by:
      toString in interface ChannelRecord
      Overrides:
      toString in class ChannelRecordImpl
      Returns:
      A description of this object.