java.lang.Object
java.lang.Enum<Rack>
io.openems.edge.battery.soltaro.cluster.enums.Rack
All Implemented Interfaces:
Serializable, Comparable<Rack>, Constable

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

    • 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
  • Field Details

  • Method Details

    • values

      public static Rack[] 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 Rack 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
    • 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 String getChannelIdPrefix()
      Gets the Channel-ID Prefix for this Rack in the form "RACK_X_".
      Returns:
      the prefix
    • getChannelDocTextPrefix

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