Package org.yamcs.commanding
Class VerificationResult
java.lang.Object
org.yamcs.commanding.VerificationResult
Class that can be used to capture the outcome of a verifier execution.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final VerificationResult
Optional message explaining why the command is successful or not (like an error message).An optional return value.boolean
Overall result of this verifier (success/fail).static final VerificationResult
-
Constructor Summary
ConstructorDescriptionVerificationResult
(boolean success) VerificationResult
(boolean success, String message) VerificationResult
(boolean success, String message, Object returnValue) -
Method Summary
-
Field Details
-
SUCCESS
-
FAIL
-
success
public boolean successOverall result of this verifier (success/fail).This impacts the acknowledgment status (green/red).
-
message
Optional message explaining why the command is successful or not (like an error message). -
returnValue
An optional return value. This may be given either on success or fail.If a verifier is configured to complete the command, the return value of the verifier can become the return value of the command itself.
This value will be transformed into a
Value
, unless it already is of that type.
-
-
Constructor Details
-
VerificationResult
public VerificationResult(boolean success) -
VerificationResult
-
VerificationResult
-
-
Method Details