Class VerificationResult

java.lang.Object
org.yamcs.commanding.VerificationResult

public class VerificationResult extends Object
Class that can be used to capture the outcome of a verifier execution.
  • Field Details

    • SUCCESS

      public static final VerificationResult SUCCESS
    • FAIL

      public static final VerificationResult FAIL
    • success

      public boolean success
      Overall result of this verifier (success/fail).

      This impacts the acknowledgment status (green/red).

    • message

      public String message
      Optional message explaining why the command is successful or not (like an error message).
    • returnValue

      public Object 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

      public VerificationResult(boolean success, String message)
    • VerificationResult

      public VerificationResult(boolean success, String message, Object returnValue)
  • Method Details