Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » linking lifeline to its corresponding class(How can I associate a lifeline to its corresponding class)
linking lifeline to its corresponding class [message #1004120] Tue, 22 January 2013 16:05 Go to next message
Mohamed Mussa is currently offline Mohamed MussaFriend
Messages: 43
Registered: August 2010
Location: Canada
Member
HI everybody,

I have Package with UML Classes and Interactions descibing some scenarios of these classes.

How can I associate a lifeline in Sequence diagram to a class in the class diagram?

There is field "Represents" in the properties view of the lifeline but it lists the names of the association between the classes not the classes!

Thanks in advance..

Mohamed
Re: linking lifeline to its corresponding class [message #1004186 is a reply to message #1004120] Tue, 22 January 2013 18:53 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Mohamed,

A Lifeline represents a ConnectableElement, usually a Property of some
classifier. This is why the editor gives you a list of properties to
choose from, not classes.

So, in the context classifier of your interaction, there should be a
property typed by the Class that you want your lifeline to represent.
As discussed recently in the Papyrus forum, a Collaboration is a
convenient classifier in which to model the interactions of your
classes by way of owned properties serving as "collaboration roles"
that your lifelines can represent. See the "Sequence Diagrams" thread
in that forum, started on 11 January.

HTH,

Christian


On 2013-01-22 16:05:16 +0000, Mohamed Mussa said:

> HI everybody,
>
> I have Package with UML Classes and Interactions descibing some
> scenarios of these classes.
>
> How can I associate a lifeline in Sequence diagram to a class in the
> class diagram?
>
> There is field "Represents" in the properties view of the lifeline but
> it lists the names of the association between the classes not the
> classes!
>
> Thanks in advance..
>
> Mohamed
Re: linking lifeline to its corresponding class [message #1004337 is a reply to message #1004186] Wed, 23 January 2013 02:11 Go to previous message
Mohamed Mussa is currently offline Mohamed MussaFriend
Messages: 43
Registered: August 2010
Location: Canada
Member
Thanks Christian,

The referred post is very helpful.
Previous Topic:XMI datatype representation
Next Topic:Set Enumeration Type in Property of Stereotype
Goto Forum:
  


Current Time: Fri Apr 19 21:24:35 GMT 2024

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

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

Back to the top