Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Handle activation of simultaneous rules during the same round #105

Open
pgambier opened this issue Apr 27, 2017 · 0 comments
Open

Handle activation of simultaneous rules during the same round #105

pgambier opened this issue Apr 27, 2017 · 0 comments

Comments

@pgambier
Copy link

The rules are evaluated sequentially. If two rules are evaluated to "true" during the same round, the second one will potentially be evaluated on an inconsistant network state (because the first action will be taken). In the majority of the cases, this behaviour will cause no harm because there is no impact of action 1 on rule 2.

To avoid potential bugs, the evaluation of the rules and application of the actions should be done differently :

  • First, evaluate all the rules but apply none of the actions
  • Then, apply all the actions associated with the rules evaluated to "true"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants