Skip to main content



      Home
Home » Modeling » Papyrus » Can I use 'self' in sequence diagram?
Can I use 'self' in sequence diagram? [message #1022117] Thu, 21 March 2013 05:52 Go to next message
Eclipse UserFriend
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 06:12 Go to previous messageGo to next message
Eclipse UserFriend
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']
Re: Can I use 'self' in sequence diagram? [message #1022146 is a reply to message #1022126] Thu, 21 March 2013 06:52 Go to previous message
Eclipse UserFriend
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:Rename Controlled Model File Error
Next Topic:How to retrieve the DefaultValues of stereotype?
Goto Forum:
  


Current Time: Wed Jul 23 06:03:00 EDT 2025

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

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

Back to the top