Enum Class RiskMatrix.ProbabilityCategory
java.lang.Object
java.lang.Enum<RiskMatrix.ProbabilityCategory>
neqsim.process.safety.risk.RiskMatrix.ProbabilityCategory
- All Implemented Interfaces:
Serializable, Comparable<RiskMatrix.ProbabilityCategory>, Constable
- Enclosing class:
RiskMatrix
Probability 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 Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateProbabilityCategory(int level, String name, double minFreq, double maxFreq) -
Method Summary
Modifier and TypeMethodDescriptionfromFrequency(double failuresPerYear) Gets category from failure frequency.intgetLevel()getName()Returns the enum constant of this class with the specified name.static RiskMatrix.ProbabilityCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VERY_LOW
Very Low: less than 0.1 failures/year. -
LOW
Low: 0.1 - 0.5 failures/year. -
MEDIUM
Medium: 0.5 - 1.0 failures/year. -
HIGH
High: 1.0 - 2.0 failures/year. -
VERY_HIGH
Very High: more than 2.0 failures/year.
-
-
Field Details
-
level
private final int level -
name
-
minFreq
private final double minFreq -
maxFreq
private final double maxFreq
-
-
Constructor Details
-
ProbabilityCategory
-
-
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
-
fromFrequency
Gets category from failure frequency.- Parameters:
failuresPerYear- failures per year- Returns:
- probability category
-