ansys.scade.apitools.create.declaration.add_operator_outputs#

ansys.scade.apitools.create.declaration.add_operator_outputs(operator: scade.model.suite.Operator, vars: List[Tuple[str, ansys.scade.apitools.create.type.TX]], insert_before: scade.model.suite.LocalVariable | None = None) List[scade.model.suite.LocalVariable]#

Add outputs to an operator.

Notes#

This is an interface change with respect to the SCADE Creation Library. The pairs “name”/”type” tree are now embedded in a list of tuples.

Parameters#

operatorsuite.Operator

Input operator.

varsList[Tuple[str, TX]]

Name/type expression trees.

insert_beforesuite.LocalVariable | None, default: None

Insertion point of the outputs. When this parameter is not None, it is an existing output of the operator. The outputs are inserted before this input. Otherwise, the outputs are added at the end.

Returns#

List[suite.LocalVariable]

List of the added outputs.