- add_data_def_assertion(data_def, diagram, name, expr, kind=AK.ASSUME, position=None)#
Create an assertion in a scope.
- Parameters:
- data_def
suite.DataDef
Input scope, which is an operator, state, or action.
- diagram
suite.Diagram
Diagram containing the equation. The diagram specified can be either graphical or textual, or it can be
None
. However, it cannot beNone
if the scope contains at least one diagram.- name
str
Name of the assertion.
- expr
EX
Expression of the assertion.
- kind
AK
, default:ASSUME
Kind of the assertion.
- position
Tuple
[float
,float
], default:None
Position of the assertion, expressed in 1/100th of mm. This value is ignored if the diagram is not a graphical diagram. Otherwise, it must be specified.
- data_def
- Returns:
suite.Assertion