ansys.scade.apitools.create.declaration.add_operator_inputs#
- ansys.scade.apitools.create.declaration.add_operator_inputs(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 inputs 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 inputs. When this parameter is not
None
, it is an existing input of the operator. The inputs are inserted before this input. Otherwise, the inputs are added at the end.
Returns#
- List[suite.LocalVariable]
List of added inputs.