Enum Class SubseaTree.PressureRating

java.lang.Object
java.lang.Enum<SubseaTree.PressureRating>
neqsim.process.equipment.subsea.SubseaTree.PressureRating
All Implemented Interfaces:
Serializable, Comparable<SubseaTree.PressureRating>, Constable
Enclosing class:
SubseaTree

public static enum SubseaTree.PressureRating extends Enum<SubseaTree.PressureRating>
Pressure rating class per API 17D.
Version:
1.0
Author:
ESOL
  • Enum Constant Details

  • Field Details

    • psi

      private final int psi
    • bar

      private final int bar
  • Constructor Details

    • PressureRating

      private PressureRating(int psi, int bar)
  • Method Details

    • values

      public static SubseaTree.PressureRating[] 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 SubseaTree.PressureRating 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
    • getPsi

      public int getPsi()
      Get pressure in psi.
      Returns:
      pressure in psi
    • getBar

      public int getBar()
      Get pressure in bar.
      Returns:
      pressure in bar