AbstractControlStatement#
- class AbstractControlStatement(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_renamable.AbstractRenamableElement
, ansys.modelcenter.workflow.grpc_modelcenter.abstract_datapin_container.AbstractGRPCDatapinContainer
, ansys.modelcenter.workflow.grpc_modelcenter.abstract_assembly_child.AbstractAssemblyChild
, ansys.engineeringworkflow.api.IControlStatement
, abc.ABC
Defines an abstract base class for control statements.
Control statements include driver components and assemblies.
Note
This class should not be directly instantiated by clients. Get a
Workflow
object from an instantiatedEngine
instance and use it to get validAssembly
,Component
, orDriverComponent
instances.
Overview#
Get all elements of the control statement. |
Import detail#
from ansys.modelcenter.workflow.grpc_modelcenter.abstract_control_statement import AbstractControlStatement
Method detail#
- AbstractControlStatement.get_elements() Mapping[str, ansys.engineeringworkflow.api.IElement] #
Get all elements of the control statement.
Because Python dictionaries are ordered, the order in which elements appear in the map may be significant, depending on the engine/workflow instance implementation. For example, some workflows may execute each element in a control statement in a defined order, which should be reflected here.