You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
or this one:
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:
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?
Generate two-dimensional transition table as:
./packages/transpiler/table
and render it using
./packages/cli
How it looks like π
The table above is called Two-dimensional state tables with some modification to suits Statecharts format.
Resources
The text was updated successfully, but these errors were encountered: