Enum Class RiskMatrix.RiskLevel
- All Implemented Interfaces:
Serializable, Comparable<RiskMatrix.RiskLevel>, Constable
- Enclosing class:
RiskMatrix
Risk level categories.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RiskMatrix.RiskLevelfromScore(int score) Gets risk level from risk score.getColor()getName()static RiskMatrix.RiskLevelReturns the enum constant of this class with the specified name.static RiskMatrix.RiskLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
Low risk - acceptable. -
MEDIUM
Medium risk - monitor and review. -
HIGH
High risk - action required. -
CRITICAL
Critical risk - immediate action.
-
-
Field Details
-
name
-
color
-
minScore
private final int minScore -
maxScore
private final int maxScore
-
-
Constructor Details
-
RiskLevel
-
-
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
-
getName
-
getColor
-
fromScore
Gets risk level from risk score.- Parameters:
score- risk score (probability * consequence)- Returns:
- risk level
-