|
wiRedPanda
Logic Circuit Simulator
|
Collects and orders the input/output elements of a circuit scene and derives the waveform table's row labels. More...
Classes | |
| struct | Signals |
| The input/output elements (label-sorted) and the row labels for a waveform table. More... | |
Functions | |
| Signals | collect (Scene *scene) |
Collects and orders the input/output elements of a circuit scene and derives the waveform table's row labels.
Pure domain logic — no view, model, or simulation. The controller takes the result, snapshots the live input states, builds the SignalModel, and wires the view.
Gathers scene's input/output elements, stable-sorts them by label, validates the circuit, and builds the per-port row labels. Throws (Pandaception) on an empty circuit or one missing inputs or outputs.
Definition at line 51 of file DolphinModelBuilder.cpp.
References Scene::elements(), DolphinModelBuilder::Signals::inputLabels, DolphinModelBuilder::Signals::inputPorts, DolphinModelBuilder::Signals::inputs, DolphinModelBuilder::Signals::outputLabels, DolphinModelBuilder::Signals::outputs, PANDACEPTION_WITH_CONTEXT, and GraphicElement::Type.
Referenced by BewavedDolphin::prepare().