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

Throw out-of-range exceptions when a state variable is assigned a value outside its declared range #72

Open
gfrances opened this issue May 13, 2017 · 0 comments
Assignees

Comments

@gfrances
Copy link
Member

Currently, for range variables, whenever the application of an action results in some (range) state variable taking a value outside its declared range, the action is implicitly considered as non-applicable.
This is useful, but too often leads to subtle model bugs that are hard to debug. A better approach would be to leave to the modeler the responsibility of keeping those variables well within its range. Whenever an action which is considered applicable (its preconditions being satisfiable) results in an out-of-range value, a runtime out-of-range exception should be thrown.

@gfrances gfrances self-assigned this May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant