Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested rewording for 3.11 interpretation of resets #321

Open
MichaelClerx opened this issue Apr 21, 2020 · 1 comment
Open

Suggested rewording for 3.11 interpretation of resets #321

MichaelClerx opened this issue Apr 21, 2020 · 1 comment
Labels
normative Pertaining to the normative specification

Comments

@MichaelClerx
Copy link
Contributor

MichaelClerx commented Apr 21, 2020

  1. For the purposes of this section, we define the “reset variable” to be the variable referenced by a reset element’s variable attribute, and the “test variable” to be the variable referenced by its test_variable attribute.
  2. Each reset element describes a change to be applied to the reset variable when specified conditions are met during the simulation of the model.
  3. For each equivalent variable set (see 3.10 Interpretation of map_variables elements) where one or more of its variables appear as a reset variable, the "active reset" shall be determined as follows:
    1. All reset elements SHALL be considered sequentially for the equivalent variable set to which the reset variable belongs. The sequence SHALL be determined by the value of the reset element’s order attribute, lowest (least positive / most negative) having priority.
    2. The active reset shall be the first reset element for the equivalent variable set for which the value of the test variable equals the evaluation of the MathML expression encoded in the test value.
  4. When an active reset is found, the value of the reset variable SHALL ...

Attempts to address #317 and #316

@MichaelClerx MichaelClerx added the normative Pertaining to the normative specification label Apr 21, 2020
@kerimoyle
Copy link
Collaborator

Want to cover off the idea of the same local variable being referenced by more than one reset too:

For each equivalent variable set (see 3.10 Interpretation of map_variables elements) where
one or more of its variables appears as a reset variable
more than one reset addresses any of its variables,
the "active reset" shall be determined as follows:
...
All reset elements SHALL be considered sequentially for within the equivalent variable set to which the reset variable belongs.
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
normative Pertaining to the normative specification
Projects
None yet
Development

No branches or pull requests

2 participants