pySimBlocks.gui.models.block_instance¶
- class pySimBlocks.gui.models.block_instance.BlockInstance(meta: BlockMeta)[source]¶
Bases:
objectRepresent a mutable GUI-side instance of a block.
- uid¶
Unique identifier for this instance.
- meta¶
Immutable block metadata definition.
- name¶
Editable block instance name.
- parameters¶
Current parameter values for the instance.
- ports¶
Resolved input and output ports for the instance.
- classmethod copy(block: Self) Self[source]¶
Create a shallow copy of a block instance.
- Parameters:
block – Block instance to copy.
- Returns:
Copied block instance with duplicated parameters.