Formula-driven binding that recomputes one MNA parameter from an expression whenever its triggers fire. More...
#include "mna_global.h"#include <QString>#include <QStringList>#include <QJsonObject>#include <QCborMap>

Go to the source code of this file.
Classes | |
| struct | MNALIB::MnaParamBinding |
| Dynamic parameter binding for the MNA parameter tree. More... | |
Namespaces | |
| namespace | MNALIB |
| MNE Analysis Container Format (mna/mnx). | |
Formula-driven binding that recomputes one MNA parameter from an expression whenever its triggers fire.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
MnaParamBinding turns the otherwise static MnaParamTree into a reactive system. Each binding links a targetPath (typically nodeId/attrKey) to an expression that references upstream results or other parameters through the ref("…") helper — for example "clamp(ref('noise_est_01/snr') * 0.1,
@c 0.01, @c 1.0)" — so a downstream node's regularisation can be derived live from an SNR estimate produced earlier in the graph.
The trigger field selects when the formula is re-evaluated: on_change fires whenever any path in dependencies updates, periodic re-evaluates every periodMs (useful for streaming pipelines), and manual leaves evaluation to explicit user action. JSON/CBOR round-trip is symmetric so bindings survive project save/load without loss of semantics.
Definition in file mna_param_binding.h.