Enum Class RatingUnits

java.lang.Object
java.lang.Enum<RatingUnits>
energy.trolie.client.model.common.RatingUnits
All Implemented Interfaces:
Serializable, Comparable<RatingUnits>, Constable

public enum RatingUnits extends Enum<RatingUnits>
Enumeration of common units supported in TROLIE
  • Enum Constant Details

    • MVA

      public static final RatingUnits MVA
      Apparent power in megavolt-amperes
    • AMPS

      public static final RatingUnits AMPS
      Current in amperes
    • MW

      public static final RatingUnits MW
      Active power in megawatts. In AARs, used in combination with the power factor
    • PF

      public static final RatingUnits PF
      Ratio of active to apparent power. In AARs, used in combination with MW.
    • MWandPF

      public static final RatingUnits MWandPF
      Represents the combination of active power and an assumed power factor. Isn't directly represented in JSON, but rather is represented with the presence of both MW and PF simultaneously.
  • Method Details

    • values

      public static RatingUnits[] 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 RatingUnits 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