Enum Rack

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Rack>

    public enum Rack
    extends java.lang.Enum<Rack>
    Helper enum to wrap information about racks.
    • Enum Constant Detail

      • RACK_1

        public static final Rack RACK_1
      • RACK_2

        public static final Rack RACK_2
      • RACK_3

        public static final Rack RACK_3
      • RACK_4

        public static final Rack RACK_4
      • RACK_5

        public static final Rack RACK_5
    • Method Detail

      • values

        public static Rack[] 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 (Rack c : Rack.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Rack valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getRack

        public static Rack getRack​(int rackId)
        Get the Rack for the given ID.
        Parameters:
        rackId - from 1 to 5
        Returns:
        the Rack
      • getChannelIdPrefix

        public java.lang.String getChannelIdPrefix()
        Gets the Channel-ID Prefix for this Rack in the form "RACK_X_".
        Returns:
        the prefix
      • getChannelDocTextPrefix

        public java.lang.String getChannelDocTextPrefix()
        Gets the Channel-Doc Text Prefix for this Rack in the form "Rack X ".
        Returns:
        the prefix