Enum Class RiskMatrix.ConsequenceCategory

java.lang.Object
java.lang.Enum<RiskMatrix.ConsequenceCategory>
neqsim.process.safety.risk.RiskMatrix.ConsequenceCategory
All Implemented Interfaces:
Serializable, Comparable<RiskMatrix.ConsequenceCategory>, Constable
Enclosing class:
RiskMatrix

public static enum RiskMatrix.ConsequenceCategory extends Enum<RiskMatrix.ConsequenceCategory>
Consequence categories (1-5).
Version:
1.0
Author:
NeqSim Development Team
  • Enum Constant Details

  • Field Details

    • level

      private final int level
    • name

      private final String name
    • minLoss

      private final double minLoss
    • maxLoss

      private final double maxLoss
  • Constructor Details

    • ConsequenceCategory

      private ConsequenceCategory(int level, String name, double minLoss, double maxLoss)
  • Method Details

    • values

      public static RiskMatrix.ConsequenceCategory[] 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 RiskMatrix.ConsequenceCategory 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
    • getLevel

      public int getLevel()
    • getName

      public String getName()
    • fromProductionLoss

      public static RiskMatrix.ConsequenceCategory fromProductionLoss(double lossPercent)
      Gets category from production loss percentage.
      Parameters:
      lossPercent - production loss percentage (0-100)
      Returns:
      consequence category