Class PredictionResult.ConstraintViolation
java.lang.Object
neqsim.process.advisory.PredictionResult.ConstraintViolation
- All Implemented Interfaces:
Serializable
- Enclosing class:
PredictionResult
A predicted constraint violation.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSeverity levels for violations. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstraintViolation(String constraintName, String variableName, double predictedValue, double limitValue, String unit, Duration timeToViolation, PredictionResult.ConstraintViolation.Severity severity) Creates a constraint violation prediction. -
Method Summary
Modifier and TypeMethodDescriptionprivate StringGets a human-readable description of the violation.doubledoublegetUnit()voidsetSuggestedAction(String action)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
constraintName
-
variableName
-
predictedValue
private final double predictedValue -
limitValue
private final double limitValue -
unit
-
timeToViolation
-
severity
-
suggestedAction
-
-
Constructor Details
-
ConstraintViolation
public ConstraintViolation(String constraintName, String variableName, double predictedValue, double limitValue, String unit, Duration timeToViolation, PredictionResult.ConstraintViolation.Severity severity) Creates a constraint violation prediction.- Parameters:
constraintName- name of the constraintvariableName- affected variablepredictedValue- predicted value at violationlimitValue- the limit being violatedunit- engineering unittimeToViolation- time until violation expectedseverity- severity level
-
-
Method Details
-
getDescription
Gets a human-readable description of the violation.- Returns:
- description string
-
formatDurationShort
-
getConstraintName
-
getVariableName
-
getPredictedValue
public double getPredictedValue() -
getLimitValue
public double getLimitValue() -
getUnit
-
getTimeToViolation
-
getSeverity
-
getSuggestedAction
-
setSuggestedAction
-