Skip to main content


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] Fri, 01 April 2011 01:48 Go to next message
Thiago Figueredo Cardoso is currently offline Thiago Figueredo CardosoFriend
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 08:19 Go to previous messageGo to next message
Eclipse UserFriend
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 19:03 Go to previous messageGo to next message
Thiago Figueredo Cardoso is currently offline Thiago Figueredo CardosoFriend
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 16:19]

Report message to a moderator

Re: Message order in UML 2.0 sequence diagrams [message #1709240 is a reply to message #663048] Fri, 25 September 2015 08:03 Go to previous messageGo to next message
Anbunathan Ramaiah is currently offline Anbunathan RamaiahFriend
Messages: 1
Registered: September 2015
Junior Member
Adding a message seems to be always appended at the end of the messages list, instead of being inserted inbetween its neighbouring messages.
The sequence number is not re-ordered after inserting new message in Sequence diagram. The sequence number of inserted message is last line in *.uml file.
I am using this sequence number to automatically generate test sequence from sequence diagram.
Is it possible to re-order the sequence number of inserted messages?
Is there any work around to maintain the order of messages after inserting messages?
Re: Message order in UML 2.0 sequence diagrams [message #1711138 is a reply to message #1709240] Tue, 13 October 2015 12:13 Go to previous message
Jens Bürger is currently offline Jens BürgerFriend
Messages: 55
Registered: October 2012
Member
I have also been running into this issue. At that time when I more deeply investigated it, I found out that in TOPCASED the messages are always ordered chronologically...

[Updated on: Tue, 13 October 2015 12:14]

Report message to a moderator

Previous Topic:C++ standard types
Next Topic:Layer
Goto Forum:
  


Current Time: Tue Apr 23 16:33:49 GMT 2024

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

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

Back to the top