Skip to main content
Ctrl+K
PyAnsys ModelCenter Workflow - Home

Site Navigation

  • Getting started
  • User guide
  • API reference
  • Contribute
  • GitHub
  • Support

Site Navigation

  • Getting started
  • User guide
  • API reference
  • Contribute
  • GitHub
  • Support

Section Navigation

  • 🖿 ansys.modelcenter.workflow
    • 🖿 api
    • 🖿 grpc_modelcenter
      • 🗎 abstract_assembly_child
      • 🗎 abstract_control_statement
      • 🗎 abstract_datapin_container
      • 🗎 abstract_renamable
      • 🗎 abstract_workflow_element
      • 🗎 assembly
      • 🗎 base_datapin
      • 🗎 boolean_datapin
      • 🗎 component
      • 🗎 create_datapin
      • 🗎 datapin_link
        • 🝆 DatapinLink
      • 🗎 driver_component
      • 🗎 element_wrapper
      • 🗎 engine
      • 🗎 file_datapin
      • 🗎 format
      • 🗎 group
      • 🗎 grpc_error_interpretation
      • 🗎 integer_datapin
      • 🗎 mcd_process
      • 🗎 real_datapin
      • 🗎 reference_datapin
      • 🗎 reference_datapin_metadata
      • 🗎 reference_property
      • 🗎 string_datapin
      • 🗎 unsupported_type_datapin
      • 🗎 var_metadata_convert
      • 🗎 var_value_convert
      • 🗎 workflow
  • PyAnsys
  • API reference
  • The ansys.modelcenter.workflow library
  • The grpc_modelcenter package
  • The datapin_link.py module
  • DatapinLink

DatapinLink#

class DatapinLink(stub: ansys.api.modelcenter.v0.grpc_modelcenter_workflow_pb2_grpc.ModelCenterWorkflowServiceStub, lhs_id: str, rhs: str)#

Bases: ansys.modelcenter.workflow.api.IDatapinLink

Defines a link between the datapins in the workflow.

Note

This class should not be directly instantiated by clients. Get a Workflow object from an instantiated Engine instance and use it to get a valid instance of this object.

Overview#

break_link

Break the link.

suspend

Suspend the link.

resume

Resume the link if it is suspended.

is_suspended

Check whether the link is suspended.

lhs

Left-hand side of the link.

rhs

Right-hand side (source) of the link equation.

__eq__

Return self==value.

__str__

Return str(self).

Import detail#

from ansys.modelcenter.workflow.grpc_modelcenter.datapin_link import DatapinLink

Property detail#

property DatapinLink.lhs: str#

Left-hand side of the link.

The left-hand side receives a value from the right-hand side (analogous to a variable assignment in most languages). This is always a simple datapin name, except in cases where the link target is a single array index, in which case it is the name of the datapin plus an array index.

property DatapinLink.rhs: str#

Right-hand side (source) of the link equation.

This is a simple equation containing the names of the other datapins that this link depends on.

Method detail#

DatapinLink.__eq__(other)#

Return self==value.

DatapinLink.__str__()#

Return str(self).

DatapinLink.break_link() → None#

Break the link.

Breaking the link removes the dependencies between the left-hand and right-hand side of the link. The object becomes invalid and cannot be used after calling this method.

DatapinLink.suspend() → None#

Suspend the link.

Suspending the link causes the engine to behave as if it is not present. This method is idempotent. It is safe to call this method multiple times, even if the link is already suspended.

DatapinLink.resume() → None#

Resume the link if it is suspended.

This method is idempotent. it is safe to call this method multiple times, even if the link is already suspended.

DatapinLink.is_suspended() → bool#

Check whether the link is suspended.

Returns:
bool

True if the link is suspended, and False otherwise.

On this page
  • DatapinLink
  • Overview
  • Import detail
  • Property detail
    • lhs
    • rhs
  • Method detail
    • __eq__()
    • __str__()
    • break_link()
    • suspend()
    • resume()
    • is_suspended()
Edit on GitHub
Show Source

© Copyright (c) 2024 ANSYS, Inc. All rights reserved.

Created using Sphinx 7.2.6.

Built with the Ansys Sphinx Theme 0.14.0.
Last updated on