Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Can I use 'self' in sequence diagram?
Can I use 'self' in sequence diagram? [message #1022117] Thu, 21 March 2013 09:52 Go to next message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
Registered: July 2009
Senior Member
Hi,

Can I use the keyword 'self' as lifeline-ident and connect it to an
arbitrary class in Papyrus 0.9.2?

TIA

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Re: Can I use 'self' in sequence diagram? [message #1022126 is a reply to message #1022117] Thu, 21 March 2013 10:12 Go to previous messageGo to next message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

Yes you can

see http://www.eclipse.org/forums/index.php/t/447570/

According to the UML spec

If the name is the keyword self, then the Lifeline represents the object of the classifier that encloses the Interaction that owns the Lifeline. Ports of the encloser may be shown separately even when self is included.

Also See the notation rules for lifelines in UML 2.5 beta 1:

<lifelineident> ::= ([<connectable-element-name>['[' <selector> ']']]
[: <class_name>] [decomposition]) | 'self'
<selector> ::= <expression>
<decomposition> ::= 'ref' <interactionident> ['strict']


Follow me on Twitter @andreasindico

Re: Can I use 'self' in sequence diagram? [message #1022146 is a reply to message #1022126] Thu, 21 March 2013 10:52 Go to previous message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
Registered: July 2009
Senior Member
On 21-03-13 11:12, Andrea Sindico wrote:
> Yes you can
>
> see http://www.eclipse.org/forums/index.php/t/447570/
>
> According to the UML spec
>
> If the name is the keyword self, then the Lifeline represents the object
> of the classifier that encloses the Interaction that owns the Lifeline.
> Ports of the encloser may be shown separately even when self is included.
>
> Also See the notation rules for lifelines in UML 2.5 beta 1:
>
> <lifelineident> ::= ([<connectable-element-name>['[' <selector> ']']] [:
> <class_name>] [decomposition]) | 'self'
> <selector> ::= <expression>
> <decomposition> ::= 'ref' <interactionident> ['strict']

OK, thanks. Sadly I do not quit understand it. You mentioned "I created
two Role Bindings in CollaborationUse with dependencies." in one of your
responses. How did you do that? By going to the model and choosing "new
child->new CollaborationUse" with the righ mouse button on the
appropriate class or by drawing some diagram?



TIA

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Previous Topic:Papyrus install problems. And, what's needed for UML?
Next Topic:How to retrieve the DefaultValues of stereotype?
Goto Forum:
  


Current Time: Sat Oct 25 00:06:10 GMT 2014

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

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