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

Simulator does not work if initial state points towards a choice state #71

Closed
AWatk opened this issue Nov 20, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@AWatk
Copy link
Collaborator

AWatk commented Nov 20, 2017

Guard condition is never prompted and so a choice is never made.

@finger563
Copy link
Owner

will need to update generators so that getInitial() handles the case that the initial state's external transition points to choice state.

Similar issues would arise when initial points to another pseudo state (e.g. End, Deep History, Shallow History), but those would be mal-formed models.

@finger563 finger563 self-assigned this Nov 20, 2017
@finger563 finger563 added the bug label Nov 20, 2017
@finger563 finger563 added this to the 1.2.0 milestone Nov 20, 2017
@finger563
Copy link
Owner

will need to re-work the code to actually evaluate the conditionals required - right now the generator just returns the final pointer to the initial state without generating tree traversal code for getting it.

@finger563
Copy link
Owner

for generation, getInitial just needs to add extra handling code to recurse through all possible choice states.

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

No branches or pull requests

2 participants