Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Message order in UML 2.0 sequence diagrams
Message order in UML 2.0 sequence diagrams [message #662800] Thu, 31 March 2011 21:48 Go to next message
Thiago Figueredo Cardoso is currently offline Thiago Figueredo Cardoso
Messages: 5
Registered: March 2011
Junior Member
This is more a UML doubt, but I'm beginning to think this is tool-specific, so you might have a clue.

How the order of the messages is modeled in UML 2.0 sequence diagrams?

I've browsed the UML 2.2 Superstructure specification and the only structure I found to model order is the GeneralOrdering class. I'm modeling my system with Papyrus, but it doesn't insert message ordering information automatically, so I miss guidelines on the use of this class.

I had the idea to test other tools and check the XMI output, but those that exported the sequence diagram properly used proprietary extensions to model message order. I tried Umodel, astah*, Enterprise Architect, PowerDesigner, Software Ideas Modeler and Visual Paradigm.

Any hint?

--
Thiago Figueredo
Re: Message order in UML 2.0 sequence diagrams [message #662843 is a reply to message #662800] Fri, 01 April 2011 04:19 Go to previous messageGo to next message
Eclipse User
Originally posted by: koen.yskout.cs.kuleuven.be

I'm not sure about the specifics of Papyrus, but in the UML
specification, the 'fragments' relationship from Interaction to
InteractionFragment is ordered (Figure 14.3), so that determines the
order of the messages.

The sending and receiving of a message are separate instances of
OccurrenceSpecification (which is a specialization of
InteractionFragment). Because messages (in principle) can cross each
other (e.g., Figure 14.16) this requires separate ordering of send and
receive events, even though I think this crossing is not always
supported by UML tools.

In practice, this would mean that the order of the occurrences can be
found in the semantic model (.uml file) using the 'fragments' feature of
the enclosing Interaction.

The GeneralOrdering that you mentioned can be used to place explicit
constraints on the required order of two occurrences, but I think that
is not what you're after.


(Disclaimer: this is my interpretation of the UML standard, so I might
be wrong, and I don't know what the different tools you mention do to
store their ordering).



On 01/04/11 03:48, Thiago Figueredo Cardoso wrote:
> This is more a UML doubt, but I'm beginning to think this is
> tool-specific, so you might have a clue.
>
> How the order of the messages is modeled in UML 2.0 sequence diagrams?
>
> I've browsed the UML 2.2 Superstructure specification and the only
> structure I found to model order is the GeneralOrdering class. I'm
> modeling my system with Papyrus, but it doesn't insert message ordering
> information automatically, so I miss guidelines on the use of this class.
>
> I had the idea to test other tools and check the XMI output, but those
> that exported the sequence diagram properly used proprietary extensions
> to model message order. I tried Umodel, astah*, Enterprise Architect,
> PowerDesigner, Software Ideas Modeler and Visual Paradigm.
>
> Any hint?
>
> --
> Thiago Figueredo
Re: Message order in UML 2.0 sequence diagrams [message #663048 is a reply to message #662843] Sat, 02 April 2011 15:03 Go to previous message
Thiago Figueredo Cardoso is currently offline Thiago Figueredo Cardoso
Messages: 5
Registered: March 2011
Junior Member
Thanks, that's what I was after! I'm checking the XMI output of the tools I tested and the 'fragments' are ordered.

--
Thiago Figueredo Cardoso

PS: Answer replicated on StackOverflow.

[Updated on: Tue, 05 April 2011 12:19]

Report message to a moderator

Previous Topic:How to access the ModelExplorerView
Next Topic:How to generate Papyrus diagrams programmatically?
Goto Forum:
  


Current Time: Sat Aug 23 03:38:01 EDT 2014

Powered by FUDForum. Page generated in 0.01617 seconds