ansys.scade.apitools.create.data_def.add_transition_equation#
- ansys.scade.apitools.create.data_def.add_transition_equation(transition: scade.model.suite.Transition, lefts: List[scade.model.suite.LocalVariable | ansys.scade.apitools.create.type.TX], right: ansys.scade.apitools.create.expression.EX) scade.model.suite.Equation #
Create an equation in a transition.
- Parameters:
- transition
suite.Transition
Input transition.
- lefts
List
[suite.LocalVariable
] List of variables defined by the equation.
- right
EX
Expression of the equation.
- transition
- Returns:
suite.Equation
Notes
This function ensures the availability of a scope before creating the equation. Indeed, the transitions do not have a scope, suite.DataDef, by default.