port module¶
-
class
port.
Port
(name=None, use_mpi=False)[source]¶ Bases:
object
Provides a method of communication between modules.
The Port class provides an interface for creating ports and connecting them to other ports for the purpose of data transfer. Data exchange takes place by send and/or receive calls on a given port. The concept of a port is that of a data transfer “interaction.” This can be one- or two-way with sends and receives. A port is connected to only one other port; as two ends of a pipe are connected.
-
connect
(port)[source]¶ Connect this port to another port
Ports must be connected for data to flow between them.
- Parameters
port (Port) – A Port object to connect to
-