pySimBlocks.gui.models.connection_instance¶
- class pySimBlocks.gui.models.connection_instance.ConnectionInstance(src_port: PortInstance, dst_port: PortInstance)[source]¶
Bases:
objectRepresent a connection between two GUI ports.
- src_port¶
Source port of the connection.
- dst_port¶
Destination port of the connection.
- src_block() BlockInstance[source]¶
Return the source block of the connection.
- Returns:
Block owning the source port.
- dst_block() BlockInstance[source]¶
Return the destination block of the connection.
- Returns:
Block owning the destination port.
- is_block_involved(block: BlockInstance) bool[source]¶
Return whether the given block participates in the connection.
- Parameters:
block – Block instance to test.
- Returns:
True if the block owns either connection endpoint.