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

Generate state transition table #24

Open
3 tasks
DrSensor opened this issue Jun 27, 2019 · 1 comment
Open
3 tasks

Generate state transition table #24

DrSensor opened this issue Jun 27, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@DrSensor
Copy link
Owner

DrSensor commented Jun 27, 2019

Generate two-dimensional transition table as:

  • ./packages/transpiler/table
    • markdown
    • csv

and render it using

How it looks like πŸ‘‡

Current State Event1 Event2 [guard] Event2 β€”
initial β€” β€” β€” State1 / entry, activity
State1 / activity, exit State2 / entry, action, activity State1 / entry, activity finish β€”
State2 / activity β€” β€” β€” finish / action

The table above is called Two-dimensional state tables with some modification to suits Statecharts format.

Resources
@DrSensor DrSensor added enhancement New feature or request good first issue Good for newcomers labels Jun 27, 2019
@DrSensor DrSensor added this to the v1.0 milestone Jun 27, 2019
@brucou
Copy link

brucou commented Jul 22, 2019

I was a bit confused by your transition table. A transition table should have a shot of before and after. So I put before(control state, extnded state, input) and after (control state, extended state, output). But you seem to put two events? I guess there may be another column for the guard? But two events in the same row I don't understand the semantics of it if any.

Let's discuss it in #24

So... I checked the book Constructing the User Interface with Statecharts by Ian Horrocks, and indeed he puts all the events in columns. But then you better have lots of horizontal space...

So, he has this table:

Imgur

or this one:

Imgur

where he makes use of numbers to avoid writing the labels of the control states.

And lastly he has this, where events are on a row:

Imgur

But yeah now that I have checked the wikipedia link, I understand your table better. There should be a way of formatting this properly. There are rarely more than three events on an origin state going to the same target state, so on a long screen it might still be possible to display everything on a row?

@DrSensor DrSensor added this to Discussing in Collaboration Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Collaboration
  
Discussing
Development

No branches or pull requests

2 participants