Open DrSensor opened 5 years ago
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:
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