3.11. Interpretation of reset
elements¶
For the purposes of this section, we define the “reset variable” to be the variable referenced by a
reset
element’svariable
attribute, and the “test variable” to be the variable referenced by itstest_variable
attribute.Each
reset
element describes a change to be applied to the reset variable when specified conditions are met during the simulation of the model.All
reset
elements SHALL be considered sequentially for the equivalent variable set (see 3.10 Interpretation of map_variables elements) to which the reset variable belongs. The sequence SHALL be determined by the value of the reset element’sorder
attribute, lowest (least positive / most negative) having priority.The condition under which a reset occurs SHALL be defined by the equality of evaluation of the test variable and the evaluation of the MathML expression encoded in the
test_value
.When a reset occurs, the reset variable SHALL be set to the result of evaluating the MathML expression encoded in the
reset_value
.