48 errors->append(QString(
"Op type mismatch: expected '%1', got '%2'").arg(
opType, node.
opType));
58 if (np.
name == sp.name) {
62 errors->append(QString(
"Input port '%1': expected data kind '%2'")
63 .arg(sp.name).arg(
static_cast<int>(sp.dataKind)));
71 errors->append(QString(
"Missing required input port '%1'").arg(sp.name));
82 if (np.
name == sp.name) {
89 errors->append(QString(
"Missing required output port '%1'").arg(sp.name));
100 errors->append(QString(
"Missing required attribute '%1'").arg(sa.name));
One operation in an MNA graph — opType, typed I/O ports, attributes, execution mode (Batch / Stream /...
Declarative contract for an MNA operation — expected input/output ports, attributes,...
MNE Analysis Container Format (mna/mnx).
Single executable step in an MNA pipeline graph, with attributes, typed ports, exec mode,...
QList< MnaPort > inputs
Input ports.
QVariantMap attributes
Operation parameters.
QString opType
Operation type (looked up in MnaOpRegistry).
QList< MnaPort > outputs
Output ports.
QList< MnaOpSchemaPort > outputPorts
Expected output ports.
QList< MnaOpSchemaPort > inputPorts
Expected input ports.
QList< MnaOpSchemaAttr > attributes
Expected attributes.
bool validate(const MnaNode &node, QStringList *errors=nullptr) const
QString opType
Operation type string.
Named, typed port on an MNA graph node with upstream link and optional real-time stream binding.
QString name
Port name (unique within a node).
MnaDataKind dataKind
Data kind flowing through this port.