Robami / pystatecharts

Automatically exported from code.google.com/p/pystatecharts
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

illegal transition detected #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. concurrent state A
2. hierarchical state B
3. state C
4. A is the parent of B, B is the parent of C
5. there are transitions to start A, start B, start C
6. there are transitions to end A, end B

When I start the statechart, A, B, C all are active.

If I send an event to end state A, no problem, everything ends.

But, 

If I also create a transition from C to C without an event in the
transition declaration, the transition call not detect this error, 
and then when I recreate the statechart, and then
send an event to end state A, state C transitions from C to C 
(without an event!) and A, B, C do not end.

I think this is a side effect of declaring a transition with no event.
And this condition is not detected as an error.

Original issue reported on code.google.com by r...@haystack.mit.edu on 11 Apr 2011 at 5:37