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:
transitionsuite.Transition

Input transition.

leftsList[suite.LocalVariable]

List of variables defined by the equation.

rightEX

Expression of the equation.

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.