ansys.dpf.core.workflow_topology.OperatorConnection#
- class ansys.dpf.core.workflow_topology.OperatorConnection(container: ansys.dpf.core.generic_data_container.GenericDataContainer)#
Bases:
ansys.dpf.core.custom_container_base.CustomContainerBase
Represents a connection between two operators in a workflow.
This class provides access to the source and target operators, as well as their respective pin IDs.
- _source_operator: ansys.dpf.core.dpf_operator.Operator | None = None#
- _source_pin_id: int | None = None#
- _target_operator: ansys.dpf.core.dpf_operator.Operator | None = None#
- _target_pin_id: int | None = None#
- property source_operator: ansys.dpf.core.dpf_operator.Operator#
Retrieve the source operator of the connection.
- Returns:
The operator serving as the source of this connection.
- Return type:
- property source_pin_id: int#
Retrieve the pin ID of the source operator.
- Returns:
The pin ID of the source operator.
- Return type:
int
- property target_operator: ansys.dpf.core.dpf_operator.Operator#
Retrieve the target operator of the connection.
- Returns:
The operator serving as the target of this connection.
- Return type:
- property target_pin_id: int#
Retrieve the pin ID of the target operator.
- Returns:
The pin ID of the target operator.
- Return type:
int
- __str__() str #
Return a string representation of the operator connection.
This includes the source and target operators and their respective pin IDs.
- Returns:
String representation of the operator connection.
- Return type:
str