Class ControllerDataExchange.ControllerOutput
java.lang.Object
neqsim.process.mpc.ControllerDataExchange.ControllerOutput
- All Implemented Interfaces:
Serializable
- Enclosing class:
ControllerDataExchange
Container for controller output data.
- Since:
- 3.0
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double[][]private final Stringprivate final double[]private static final longprivate final ControllerDataExchange.ExecutionStatusprivate final Instant -
Constructor Summary
ConstructorsConstructorDescriptionControllerOutput(double[] mvTargets, double[][] cvPredictions, ControllerDataExchange.ExecutionStatus status, String message, Instant timestamp) Construct a controller output. -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]Get CV predictions.Get execution message.double[]Get MV target values.Get execution status.Get execution timestamp.booleanCheck if execution was successful.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mvTargets
private final double[] mvTargets -
cvPredictions
private final double[][] cvPredictions -
status
-
message
-
timestamp
-
-
Constructor Details
-
ControllerOutput
public ControllerOutput(double[] mvTargets, double[][] cvPredictions, ControllerDataExchange.ExecutionStatus status, String message, Instant timestamp) Construct a controller output.- Parameters:
mvTargets- the MV target valuescvPredictions- the CV prediction trajectoriesstatus- the execution statusmessage- the execution messagetimestamp- the execution timestamp
-
-
Method Details
-
getMvTargets
public double[] getMvTargets()Get MV target values.- Returns:
- copy of MV targets
-
getCvPredictions
public double[][] getCvPredictions()Get CV predictions.- Returns:
- copy of CV predictions
-
getStatus
-
getMessage
-
getTimestamp
-
isSuccess
public boolean isSuccess()Check if execution was successful.- Returns:
- true if status is SUCCESS
-