pathsim.utils.portreference module¶
- class pathsim.utils.portreference.PortReference(block=None, ports=None)[source]¶
Bases:
objectThis is a container class that holds a reference to a block and a list of ports.
Note
The default port, when no ports are defined in the arguments is 0.
- Parameters:
- block¶
- ports¶
- to(other)[source]¶
Transfer the data between two PortReference instances, in this direction self -> other. From outputs to inputs.
- Parameters:
other (PortReference) – the PortReference instance to transfer data to from self