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
Consequence categories (1-5).
- Version:
- 1.0
- Author:
- NeqSim Development Team
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCatastrophic: more than 80% production loss (plant stop).Major: 50-80% production loss.Minor: 5-20% production loss.Moderate: 20-50% production loss.Negligible: less than 5% production loss. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConsequenceCategory(int level, String name, double minLoss, double maxLoss) -
Method Summary
Modifier and TypeMethodDescriptionfromProductionLoss(double lossPercent) Gets category from production loss percentage.intgetLevel()getName()Returns the enum constant of this class with the specified name.static RiskMatrix.ConsequenceCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEGLIGIBLE
Negligible: less than 5% production loss. -
MINOR
Minor: 5-20% production loss. -
MODERATE
Moderate: 20-50% production loss. -
MAJOR
Major: 50-80% production loss. -
CATASTROPHIC
Catastrophic: more than 80% production loss (plant stop).
-
-
Field Details
-
level
private final int level -
name
-
minLoss
private final double minLoss -
maxLoss
private final double maxLoss
-
-
Constructor Details
-
ConsequenceCategory
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getLevel
public int getLevel() -
getName
-
fromProductionLoss
Gets category from production loss percentage.- Parameters:
lossPercent- production loss percentage (0-100)- Returns:
- consequence category
-