pySimBlocks.gui.blocks.systems.sofa.sofa_plant¶
- class pySimBlocks.gui.blocks.systems.sofa.sofa_plant.SofaPlantMeta[source]¶
Bases:
BlockMetaDescribe the GUI metadata of the SOFA plant block.
- resolve_port_group(port_meta: PortMeta, direction: Literal['input', 'output'], instance: BlockInstance) list[PortInstance][source]¶
Resolve dynamic SOFA input and output ports from configured key lists.
- Parameters:
port_meta – Declared port metadata.
direction – Direction of the port group.
instance – Block instance whose ports are being built.
- Returns:
Concrete ports for the requested port group.
- build_param(session, form: QFormLayout, readonly: bool = False)[source]¶
Build the SOFA-plant parameter editor.
- Parameters:
session – Active dialog session.
form – Form layout receiving the widgets.
readonly – Whether the dialog is read-only.