Closed GoogleCodeExporter closed 9 years ago
Original comment by TimothyCLethbridge
on 4 Jun 2014 at 4:01
Cause:
The issues 575 and 576 are caused by the same problem.
By definition if there is a transition in a state that also has a auto
transition a warning should be raised since the normal transition is
unnecessary. This verification is done by the method
checkStateForDuplicateEvents of UmpleInternalParser_CodeStateMachine.ump file.
The problem here is that this method defines a auto transition as a transition
that does not have a guard nor event. Consequently, a timed transition is also
considered as a auto transition and raises a warning when followed by a
"normal" transition.
Solution:
Change the auto transition definition to consider not only the existence of a
guard and a event associated with the transition but also the presence of a
timer value.
Original comment by PedroAug...@gmail.com
on 4 Jun 2014 at 6:35
Original comment by PedroAug...@gmail.com
on 4 Jun 2014 at 6:35
Original comment by PedroAug...@gmail.com
on 5 Jun 2014 at 2:36
Attachments:
I found a case where this warning still being raised wrongly.
Try the following case:
class X {
sm {
s1 {
sa {
-> s2.sa;
}
sb {
e1 -> sa;
e2 -> s2;
}
}
s2 {
sa {
e -> sb;
}
sb {
e1 -> sa;
e2 -> s1;
sa
{
}
}
}
}
}
I am working to fix this bug.
Original comment by PedroAug...@gmail.com
on 10 Jul 2014 at 2:49
Following the patch that fix the case above:
Original comment by PedroAug...@gmail.com
on 10 Jul 2014 at 6:28
Attachments:
The following patch fix the cases where there is a duplicate event before a
autotransition. On the current version no warning is raised.
Ex:
class X {
sm {
s1
{
e -> s3;
-> s2;
-> s3;
}
s2 {}
s3 {}
}
}
Original comment by PedroAug...@gmail.com
on 17 Jul 2014 at 7:53
Attachments:
Original comment by TimothyCLethbridge
on 5 Aug 2014 at 7:03
Original issue reported on code.google.com by
TimothyCLethbridge
on 30 May 2014 at 4:49