Class ConformityResult
java.lang.Object
neqsim.process.mechanicaldesign.separator.conformity.ConformityResult
- All Implemented Interfaces:
Serializable
Result of a single conformity check against a design standard.
Each check evaluates an actual operating value against a limit from a named standard (e.g., TR3500). The result includes the check name, the internal it applies to (if any), the actual value, the limit, and a pass/warning/fail status.
- Version:
- 1.0
- Author:
- NeqSim Development Team
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDirection of the limit check.static enumStatus of a conformity check. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final Stringprivate final Stringprivate final ConformityResult.LimitDirectionprivate final Stringprivate final doubleprivate static final longSerialization version UID.private final Stringprivate final ConformityResult.Statusprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionConformityResult(String checkName, String standard, String internalType, double actualValue, double limitValue, String unit, ConformityResult.LimitDirection direction, String description) Constructs a ConformityResult. -
Method Summary
Modifier and TypeMethodDescriptionprivate static ConformityResult.StatusevaluateStatus(double actual, double limit, ConformityResult.LimitDirection dir) Evaluates the status based on actual value, limit, and direction.doubleGets the actual calculated value.Gets the check name.Gets the human-readable description.Gets the limit direction.Gets the internal type this check applies to.doubleGets the limit value from the standard.Gets the standard name.Gets the conformity status.getUnit()Gets the engineering unit.booleanisPassed()Returns true if the check passed (PASS or WARNING).static ConformityResultnotApplicable(String checkName, String standard, String reason) Creates a NOT_APPLICABLE result when a check cannot be evaluated.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
checkName
-
standard
-
internalType
-
actualValue
private final double actualValue -
limitValue
private final double limitValue -
unit
-
status
-
direction
-
description
-
-
Constructor Details
-
ConformityResult
public ConformityResult(String checkName, String standard, String internalType, double actualValue, double limitValue, String unit, ConformityResult.LimitDirection direction, String description) Constructs a ConformityResult.- Parameters:
checkName- short identifier for the check (e.g., "k-factor", "inlet-momentum")standard- the conformity standard (e.g., "TR3500", "API-12J")internalType- the internal this check applies to (e.g., "mesh-pad", "demisting-cyclones") or empty string for vessel-level checksactualValue- the calculated actual valuelimitValue- the acceptance limit from the standardunit- the engineering unit (e.g., "m/s", "Pa", "mm")direction- whether the limit is a maximum or minimumdescription- human-readable description of the check
-
-
Method Details
-
notApplicable
Creates a NOT_APPLICABLE result when a check cannot be evaluated.- Parameters:
checkName- short identifier for the checkstandard- the conformity standardreason- why the check is not applicable- Returns:
- a ConformityResult with NOT_APPLICABLE status
-
evaluateStatus
private static ConformityResult.Status evaluateStatus(double actual, double limit, ConformityResult.LimitDirection dir) Evaluates the status based on actual value, limit, and direction.- Parameters:
actual- the actual valuelimit- the limit valuedir- the direction (MAXIMUM or MINIMUM)- Returns:
- the evaluated status
-
getCheckName
-
getStandard
-
getInternalType
Gets the internal type this check applies to.- Returns:
- the internal type, or empty string for vessel-level checks
-
getActualValue
public double getActualValue()Gets the actual calculated value.- Returns:
- the actual value
-
getLimitValue
public double getLimitValue()Gets the limit value from the standard.- Returns:
- the limit value
-
getUnit
-
getStatus
Gets the conformity status.- Returns:
- PASS, WARNING, FAIL, or NOT_APPLICABLE
-
getDirection
Gets the limit direction.- Returns:
- MAXIMUM or MINIMUM
-
getDescription
-
isPassed
public boolean isPassed()Returns true if the check passed (PASS or WARNING).- Returns:
- true if status is PASS or WARNING
-
toString
-