ansys.dpf.core.workflow_topology.DataConnection#

class ansys.dpf.core.workflow_topology.DataConnection(container: ansys.dpf.core.generic_data_container.GenericDataContainer)#

Bases: ansys.dpf.core.custom_container_base.CustomContainerBase

Represents a connection between a data and an operator in a workflow.

This class provides access to the source data and target operator, as well as its pin ID.

_source_data: Any | None = None#
_target_operator: ansys.dpf.core.dpf_operator.Operator | None = None#
_target_pin_id: int | None = None#
property source_data: Any#

Retrieve the source data of the connection.

Returns:

The data serving as the source of this connection.

Return type:

Any

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:

Operator

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 data connection.

This includes the source data and target operator, with its pin ID.

Returns:

String representation of the data connection.

Return type:

str