Class SteadyStateResult
java.lang.Object
neqsim.process.util.reconciliation.SteadyStateResult
- All Implemented Interfaces:
Serializable
Result of a steady-state detection evaluation.
Produced by SteadyStateDetector.evaluate() after checking all monitored variables against
R-statistic, slope, and standard-deviation thresholds. Contains an overall verdict and
per-variable diagnostics.
- Version:
- 1.0
- Author:
- Process Optimization Team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether the overall process is at steady state (all variables pass).private doubleMinimum R-statistic threshold used.private static final longprivate doubleMaximum slope threshold used.private intNumber of variables at steady state.private longTimestamp (epoch ms) of the evaluation.private intNumber of variables not at steady state.private final List<SteadyStateVariable> Variables that failed the SSD test.private final List<SteadyStateVariable> All monitored variables with their current SSD status. -
Constructor Summary
ConstructorsConstructorDescriptionSteadyStateResult(List<SteadyStateVariable> variables, double rThreshold, double slopeThreshold) Creates a steady-state detection result. -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddTransientVariable(SteadyStateVariable variable) Adds a variable to the transient list.doubleReturns the R-statistic threshold used for this evaluation.doubleReturns the slope threshold used for this evaluation.intReturns the number of variables at steady state.longReturns the evaluation timestamp.intReturns the number of variables not at steady state.Returns the variables that failed the SSD test.Returns all monitored variables.booleanReturns whether the overall process is at steady state.(package private) voidsetAtSteadyState(boolean atSteadyState) Sets the overall steady-state verdict.(package private) voidsetSteadyCount(int steadyCount) Sets the number of steady-state variables.(package private) voidsetTimestamp(long timestamp) Sets the evaluation timestamp.(package private) voidsetTransientCount(int transientCount) Sets the number of transient variables.toJson()Returns a JSON representation of the result.toReport()Returns a human-readable summary report.toString()Returns a summary string.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
variables
All monitored variables with their current SSD status. -
atSteadyState
private boolean atSteadyStateWhether the overall process is at steady state (all variables pass). -
steadyCount
private int steadyCountNumber of variables at steady state. -
transientCount
private int transientCountNumber of variables not at steady state. -
transientVariables
Variables that failed the SSD test. -
timestamp
private long timestampTimestamp (epoch ms) of the evaluation. -
rThreshold
private double rThresholdMinimum R-statistic threshold used. -
slopeThreshold
private double slopeThresholdMaximum slope threshold used.
-
-
Constructor Details
-
SteadyStateResult
public SteadyStateResult(List<SteadyStateVariable> variables, double rThreshold, double slopeThreshold) Creates a steady-state detection result.- Parameters:
variables- the list of all monitored variablesrThreshold- the R-statistic threshold usedslopeThreshold- the slope threshold used
-
-
Method Details
-
getVariables
Returns all monitored variables.- Returns:
- unmodifiable list of variables
-
isAtSteadyState
public boolean isAtSteadyState()Returns whether the overall process is at steady state.- Returns:
- true if all variables are at steady state
-
setAtSteadyState
void setAtSteadyState(boolean atSteadyState) Sets the overall steady-state verdict.- Parameters:
atSteadyState- true if all variables pass
-
getSteadyCount
public int getSteadyCount()Returns the number of variables at steady state.- Returns:
- count of steady-state variables
-
setSteadyCount
void setSteadyCount(int steadyCount) Sets the number of steady-state variables.- Parameters:
steadyCount- the count
-
getTransientCount
public int getTransientCount()Returns the number of variables not at steady state.- Returns:
- count of transient variables
-
setTransientCount
void setTransientCount(int transientCount) Sets the number of transient variables.- Parameters:
transientCount- the count
-
getTransientVariables
Returns the variables that failed the SSD test.- Returns:
- unmodifiable list of transient variables
-
addTransientVariable
Adds a variable to the transient list.- Parameters:
variable- the variable that failed the SSD test
-
getTimestamp
public long getTimestamp()Returns the evaluation timestamp.- Returns:
- epoch milliseconds when evaluate() was called
-
setTimestamp
void setTimestamp(long timestamp) Sets the evaluation timestamp.- Parameters:
timestamp- epoch milliseconds
-
getRThreshold
public double getRThreshold()Returns the R-statistic threshold used for this evaluation.- Returns:
- the R threshold
-
getSlopeThreshold
public double getSlopeThreshold()Returns the slope threshold used for this evaluation.- Returns:
- the slope threshold
-
toReport
Returns a human-readable summary report.- Returns:
- formatted text report of the SSD evaluation
-
toJson
Returns a JSON representation of the result.- Returns:
- JSON string with all SSD data
-
toString
-