Verification check for a graph node. More...
#include <mna_verification.h>
Public Member Functions | |
| QJsonObject | toJson () const |
| QCborMap | toCbor () const |
Static Public Member Functions | |
| static MnaVerificationCheck | fromJson (const QJsonObject &json) |
| static MnaVerificationCheck | fromCbor (const QCborMap &cbor) |
Public Attributes | |
| QString | id |
| Unique check identifier within the node (e.g. "cov_posdef"). | |
| QString | description |
| Human-readable: "Covariance matrix must be positive-definite". | |
| QString | phase |
| "pre" (before execution) or "post" (after execution) | |
| QString | expression |
| Simple evaluable expression: "rank(covariance) > 0". | |
| MnaScript | script |
| QString | severity |
| "error" (abort), "warning" (log + continue), "info" (always continue) | |
| QString | onFail |
| Optional remediation hint. | |
Verification check for a graph node.
A declarative check (pre- or post-condition) attached to a graph node. Evaluated by the executor; can warn, abort, or log an informational note.
Definition at line 73 of file mna_verification.h.
|
static |
Definition at line 110 of file mna_verification.cpp.
|
static |
Definition at line 74 of file mna_verification.cpp.
| QCborMap MnaVerificationCheck::toCbor | ( | ) | const |
Definition at line 91 of file mna_verification.cpp.
| QJsonObject MnaVerificationCheck::toJson | ( | ) | const |
Definition at line 55 of file mna_verification.cpp.
| QString MNALIB::MnaVerificationCheck::description |
Human-readable: "Covariance matrix must be positive-definite".
Definition at line 76 of file mna_verification.h.
| QString MNALIB::MnaVerificationCheck::expression |
Simple evaluable expression: "rank(covariance) > 0".
Definition at line 78 of file mna_verification.h.
| QString MNALIB::MnaVerificationCheck::id |
Unique check identifier within the node (e.g. "cov_posdef").
Definition at line 75 of file mna_verification.h.
| QString MNALIB::MnaVerificationCheck::onFail |
Optional remediation hint.
Definition at line 84 of file mna_verification.h.
| QString MNALIB::MnaVerificationCheck::phase |
"pre" (before execution) or "post" (after execution)
Definition at line 77 of file mna_verification.h.
| MnaScript MNALIB::MnaVerificationCheck::script |
Optional script for complex checks (exit code 0 = pass). When script.code is non-empty, the executor runs the script instead of evaluating expression. Supports {{placeholder}} substitution for node inputs and attributes.
Definition at line 79 of file mna_verification.h.
| QString MNALIB::MnaVerificationCheck::severity |
"error" (abort), "warning" (log + continue), "info" (always continue)
Definition at line 83 of file mna_verification.h.