AbstractGRPCDatapinContainer#

class AbstractGRPCDatapinContainer(element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine)#

Bases: ansys.modelcenter.workflow.grpc_modelcenter.abstract_workflow_element.AbstractWorkflowElement, ansys.modelcenter.workflow.api.IGroupOwner, abc.ABC

Defines the abstract base class for the datapin container.

A datapin container returns child variables and groups.

Overview#

get_groups

Get the child groups of the element.

get_datapins

Get the datapins in the container.

Import detail#

from ansys.modelcenter.workflow.grpc_modelcenter.abstract_datapin_container import AbstractGRPCDatapinContainer

Method detail#

AbstractGRPCDatapinContainer.get_groups() Mapping[str, ansys.modelcenter.workflow.api.IGroup]#

Get the child groups of the element.

AbstractGRPCDatapinContainer.get_datapins() Mapping[str, ansys.modelcenter.workflow.api.IDatapin]#

Get the datapins in the container.

Returns:
Mapping[str, IDatapin]

Map of the datapins in the container. The keys in the map are the short names of the datapins (relative to the container’s name).