Class Alarm


  • public final class Alarm
    extends Object
    Convenience class for an alarm.
    Author:
    mrk
    • Constructor Detail

      • Alarm

        public Alarm()
        Constructor
    • Method Detail

      • getMessage

        public String getMessage()
        Get the alarm message.
        Returns:
        the value
      • setMessage

        public void setMessage​(String message)
        Set the alarm message.
        Parameters:
        message - the message
      • getSeverity

        public AlarmSeverity getSeverity()
        Get the alarm severity.
        Returns:
        the value
      • setSeverity

        public void setSeverity​(AlarmSeverity alarmSeverity)
        Set the alarm severity. If an invalid value is given than an exception is thrown.
        Parameters:
        alarmSeverity - the severity
      • getStatus

        public AlarmStatus getStatus()
        Get the alarm status.
        Returns:
        the value
      • setStatus

        public void setStatus​(AlarmStatus alarmStatus)
        Set the alarm status. If an invalid value is given than an exception is thrown.
        Parameters:
        alarmStatus - the status