v2.0.0
Loading...
Searching...
No Matches
MNALIB::MnaVerificationCheck Struct Reference

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.

Detailed Description

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.

Member Function Documentation

◆ fromCbor()

MnaVerificationCheck MnaVerificationCheck::fromCbor ( const QCborMap & cbor)
static

Definition at line 110 of file mna_verification.cpp.

◆ fromJson()

MnaVerificationCheck MnaVerificationCheck::fromJson ( const QJsonObject & json)
static

Definition at line 74 of file mna_verification.cpp.

◆ toCbor()

QCborMap MnaVerificationCheck::toCbor ( ) const

Definition at line 91 of file mna_verification.cpp.

◆ toJson()

QJsonObject MnaVerificationCheck::toJson ( ) const

Definition at line 55 of file mna_verification.cpp.

Member Data Documentation

◆ description

QString MNALIB::MnaVerificationCheck::description

Human-readable: "Covariance matrix must be positive-definite".

Definition at line 76 of file mna_verification.h.

◆ expression

QString MNALIB::MnaVerificationCheck::expression

Simple evaluable expression: "rank(covariance) > 0".

Definition at line 78 of file mna_verification.h.

◆ id

QString MNALIB::MnaVerificationCheck::id

Unique check identifier within the node (e.g. "cov_posdef").

Definition at line 75 of file mna_verification.h.

◆ onFail

QString MNALIB::MnaVerificationCheck::onFail

Optional remediation hint.

Definition at line 84 of file mna_verification.h.

◆ phase

QString MNALIB::MnaVerificationCheck::phase

"pre" (before execution) or "post" (after execution)

Definition at line 77 of file mna_verification.h.

◆ script

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.

◆ severity

QString MNALIB::MnaVerificationCheck::severity

"error" (abort), "warning" (log + continue), "info" (always continue)

Definition at line 83 of file mna_verification.h.


The documentation for this struct was generated from the following files: