Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » Can a state machine be a child of another state state machine(An old model with Papyrus 0.7x shows a state machine within another state machine)
Can a state machine be a child of another state state machine [message #1795686] Wed, 26 September 2018 19:48 Go to next message
Dimo Ditchev is currently offline Dimo DitchevFriend
Messages: 33
Registered: September 2018
Member
Forum: Papyrus for Real Time «» Posted on: Fri, 25 September 2015 16:49 «» By: Tobias Pr
Combining Papyrus RT with normal Code

The attached model contains a state machine within another state machine.
The model in the attached file ( Forum_1709295-LEDEmbedded.zip in
Home » Eclipse Projects » Papyrus for Real Time » Combining Papyrus RT with normal Code ) does not properly open in 1.1.0.
Does anyone know if this a valid model?


Thanks,
Dimo
Re: Can a state machine be a child of another state state machine [message #1795741 is a reply to message #1795686] Thu, 27 September 2018 15:02 Go to previous message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
Your message is confusing: it has a reference to "version 1.1.0" (and the header talks about version 0.7), however the latest release of Papyrus-RT is 1.0, there is no version 1.1.0. Furthermore, the diagrams appear to be of an *older* version of Papyrus-RT, i.e. 0.9 or earlier (presumably 0.7?) Furthermore, the message confusingly refers to a model in a zip file which is not attached, and to the combination of Papyrus-RT with "normal code". Can you clarify?

UML-RT state machines are hierarchical, meaning that some states can be *composite* states, i.e., they can contain states and transitions inside states, as your diagram shows, but this is not the same as containing a full state machine. The UML standard does allow full State Machines within State Machines, i.e. sub-state machines or submachines for short, but that is not the same as composite states, although very similar. Check [1] for details on the difference, particularly section "14.2.3.4.7 Submachine States and submachines". UML-RT supports composite states, but not submachines. Having said that, Papyrus-RT implements such composite states, both in modelling and their semantics in generated code.

If your question is whether a model created with a pre-1.0 version of Papyrus-RT can be opened in 1.0, the answer is that maybe, but there are no guarantees, and many may fail. But the hierarchal structure of state machines should not be a problem.

[1] https://www.omg.org/spec/UML/2.5.1/

[Updated on: Thu, 27 September 2018 15:10]

Report message to a moderator

Previous Topic:multiplicity at objects?
Next Topic:Problems saving changes
Goto Forum:
  


Current Time: Fri Apr 19 22:25:19 GMT 2024

Powered by FUDForum. Page generated in 0.02554 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top