Can I use 'self' in sequence diagram? [message #1022117] |
Thu, 21 March 2013 09:52 |
Joost Kraaijeveld Messages: 273 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
Cheers,
Joost
|
|
|
Re: Can I use 'self' in sequence diagram? [message #1022126 is a reply to message #1022117] |
Thu, 21 March 2013 10:12 |
|
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 |
Joost Kraaijeveld Messages: 273 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
Cheers,
Joost
|
|
|
Powered by
FUDForum. Page generated in 0.03289 seconds