Class WicaChannelAlarmStatus

java.lang.Object
ch.psi.wica.model.channel.value.WicaChannelAlarmStatus
Direct Known Subclasses:
WicaChannelValueMixins.WicaChannelAlarmStatusMixin

public class WicaChannelAlarmStatus extends Object
Represents the alarm status of a wica channel, an abstraction whose value and meaning depends on the underlying control system which hosts it.
  • Constructor Details

    • WicaChannelAlarmStatus

      public WicaChannelAlarmStatus(int wicaAlarmStatusCode)
      Constructs a new instance of a WicaChannelAlarmStatus.
      Parameters:
      wicaAlarmStatusCode - the status code.
  • Method Details

    • of

      public static WicaChannelAlarmStatus of(int statusCode)
      Returns a new instance of a WicaChannelAlarmStatus.
      Parameters:
      statusCode - the status code.
      Returns:
      the new instance.
    • ofNoError

      public static WicaChannelAlarmStatus ofNoError()
      Returns a new instance of a WicaChannelAlarmStatus with a status code of zero.
      Returns:
      the new instance.
    • getStatusCode

      public int getStatusCode()
      Returns the status code.
      Returns:
      the status code.
    • toString

      public String toString()
      Overrides:
      toString in class Object