Enum Class AlarmLevel

java.lang.Object
java.lang.Enum<AlarmLevel>
neqsim.process.alarm.AlarmLevel
All Implemented Interfaces:
Serializable, Comparable<AlarmLevel>, Constable

public enum AlarmLevel extends Enum<AlarmLevel> implements Serializable
Enumerates the discrete alarm levels used when evaluating measurement values.
  • Enum Constant Details

    • LOLO

      public static final AlarmLevel LOLO
      Low-low alarm limit exceeded.
    • LO

      public static final AlarmLevel LO
      Low alarm limit exceeded.
    • HI

      public static final AlarmLevel HI
      High alarm limit exceeded.
    • HIHI

      public static final AlarmLevel HIHI
      High-high alarm limit exceeded.
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static AlarmLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AlarmLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPriority

      public int getPriority()
      Returns a relative priority used when comparing alarm severities.
      Returns:
      priority where higher magnitude indicates a more severe alarm
    • getDirection

      public AlarmLevel.Direction getDirection()
      Returns the direction of the alarm.
      Returns:
      HIGH if the alarm is triggered by high values, otherwise LOW