Enum AlarmState

  • All Implemented Interfaces:
    Serializable, Comparable<AlarmState>

    public enum AlarmState
    extends Enum<AlarmState>
    Inspired from ANSI/ISA–18.2 Management Of Alarm Systems For The Process Industries process is the entity that triggers the alarm, in our case parameters or events.
    • Method Detail

      • values

        public static AlarmState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AlarmState c : AlarmState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AlarmState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null