|
Re: How to use deep history in Papyrus-RT [message #1758354 is a reply to message #1758353] |
Tue, 28 March 2017 02:46 |
Ernesto Posse Messages: 438 Registered: March 2011 |
Senior Member |
|
|
In UML-RT you *always* have deep-history. This means that when a transition ends at the boundary of a composite state or in an entry point that does not have a following transition segment inside the composite state, it is as if it ended up in the deep-history pseudo-state. Hence, the deep-history pseudo-state is redundant and unnecessary.
So, say that you have a composite state S1 with sub-states S11 and S12, with a transition t11 from S11 to S12, and an initial transition t10 to S11. Also suppose that there is a transition t1 that ends at S1's boundary. Then, the first time the transition t1 is taken, it will follow S1's initial transition t10 into S11. Suppose that then transition t11 is taken and end up in S12. And also suppose that later you exit S1 altogether. Now, if you exit S1, and take t1 again, then it will return to S12, rather than take the initial transition t10. There is no need for a deep-history pseudo state because it is implicit.
|
|
|
|
|
Re: How to use deep history in Papyrus-RT [message #1758434 is a reply to message #1758381] |
Tue, 28 March 2017 16:25 |
Ernesto Posse Messages: 438 Registered: March 2011 |
Senior Member |
|
|
Just to add to Peter's response, the rule I described indeed is for *any* transition that ends at the boundary of a composite state. There is no difference between t1, the first time you get to S1, or any other transition such as t2 that comes from elsewhere. Furthermore, this rule even holds for transitions coming from *inside* the composite state. For example. you can draw a transition t12 from S12 to S1's boundary and it will implicitly go to history, so in effect, when you take t12, it will go to history and therefore it will go back to S12. The same holds for internal transitions. An internal transition t12 from S1 to S1 is essentially both a group transition and a transition into history, so it will potentially be enabled in any substate of S1, and if taken, it will go back to the sub state that was active when it triggered.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04350 seconds