Issue 18170: It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates (uml25-ftf) Source: Microsoft (Mr. Steve Cook, stcook(at)microsoft.com) Nature: Uncategorized Issue Severity: Summary: It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates Resolution: Revised Text: Actions taken: August 24, 2012: received issue Discussion: End of Annotations:===== te: Fri, 24 Aug 2012 13:27:22 +0000 From: "Chonoles, Michael J" Subject: RE: [Fwd: UML - sequence diagram] X-Originating-IP: [158.186.156.94] To: "Steve.Cook@microsoft.com" , Tom Rutt , "michael.mh.hahn@daimler.com" , "stz.lauffer@daimler.com" Cc: Juergen Boldt , "uml2-rtf@omg.org" Thread-Topic: [Fwd: UML - sequence diagram] Thread-Index: AQHNgdUvNByeAbARak6RGKwvfwGZ6Jdo9J2A Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.260,0.0.0000 definitions=2012-08-24_05:2012-08-24,2012-08-24,1970-01-01 signatures=0 Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 X-AuditID: 351f146f-b7f7b6d000000f3b-af-5037856cea60 To: michael.j.chonoles@lmco.com Cc: juergen@omg.org, Steve.Cook@microsoft.com, tom@coastin.com Subject: Antwort: RE: [Fwd: UML - sequence diagram] From: stz.lauffer@daimler.com Date: Fri, 24 Aug 2012 15:45:13 +0200 X-KeepSent: 88520400:0EC5DF46-C1257A64:004A38C3; name=$KeepSent; type=4 X-Disclaimed: 50647 X-SenderTag: 3 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsViKq+iq5vbah5g8GUmo8X8ltcsDowe51ZM ZAtgjOKySUnNySxLLdK3S+DK2LTsPltB3xSmih1HZrM3MF7qYepi5OSQEDCRaJ60gQXCFpO4 cG89WxcjF4eQwDFGiYYH+9khnHOMErtnTWGGcL4zSqzdd4cZpIVTwEfiw/J7bCC2iIC8xMJt XWBjmQXsJF6f7QKKc3AICxhLtP6rBgnzCoRKnP56E6yETUBWYv7kOWCbWQRUJe63nmWBaPWQ ONx7DeqKL4wSU7puMkM0C0r8mHwP6lR3icWfHrBD2MISFzc0s0HYfBJzl25inMAoNAvJrFlI 2iHiARJPjnxhhLA1JVq3/2aHsBUlpnQ/hLI1JBbc2ceIKS4usf9KGzOEbSgx9fIHFmQ1Cxi5 VjHKJxbrFifqGhgZ6qXmpibqJaXrJecXFQBjrihRLy+1ZBMjOO5E8ncwLrsucIhRgINRiYd3 koN5gBBrYllxZe4hRgkOZiURXgE/oBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeguPf/IUE0hNL UrNTUwtSi2CyTBycUg2MVvvsPRi4wnOeH1qexFQYcuDmph15O2qZbrxbFG91+npl6vRv1xmr TuU9Ocve/UvNVyvF4mSrSzvrFo/4ZLPVW/rnBqxRKCz4m1qnccv/mrnzs7m8bKfd0//UZGu4 sMrwCE9cYC44q+Zon9XJv9+u/w391i9REZD6/ZDSowD5n9ZLntgHGz1QYinOSDTUYi4qTgQA 21Kx3LcCAAA= Dear Steve, Tom and Michael, Thank you very much for your answers. That helps a lot. Another question is still outstanding: > If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. -> This concerns the message. What do I write into the Lifeline of a static class? Only the name of the Class without ":"? Or maybe like in following figure with a stereotype? Please do not write to Michael Hahn, because he is in another depatment and is not directly concerned with UML. Does someone know how this address got to the OMG? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com michael.j.chonoles@lmco.com 24.08.2012 15:28 An Steve.Cook@microsoft.com, tom@coastin.com, michael.mh.hahn@daimler.com, stz.lauffer@daimler.com Kopie juergen@omg.org, uml2-rtf@omg.org Thema RE: [Fwd: UML - sequence diagram] Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its âheadâ followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[â[â â]â]] [: ] [decomposition]) | âselfâ ::= ::= ârefâ [âstrictâ] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Authentication-Results: cm-omr12 smtp.user=tom@coastenterprises.com; auth=pass (LOGIN) X-Authenticated-UID: tom@coastenterprises.com Date: Fri, 24 Aug 2012 13:27:28 -0400 From: Tom Rutt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 To: "Chonoles, Michael J" CC: "Steve.Cook@microsoft.com" , "michael.mh.hahn@daimler.com" , "stz.lauffer@daimler.com" , Juergen Boldt , "uml2-rtf@omg.org" Subject: Re: [Fwd: UML - sequence diagram] On 8/24/2012 9:27 AM, Chonoles, Michael J wrote: Is that an issue? From Steve Cook's answer, I do not think there is a problem. The lifeline notation seems to cover this case. Tom From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 Date: Fri, 24 Aug 2012 17:29:28 +0000 From: "Chonoles, Michael J" Subject: RE: EXTERNAL: Re: [Fwd: UML - sequence diagram] X-Originating-IP: [158.186.156.94] To: Tom Rutt Cc: "Steve.Cook@microsoft.com" , "michael.mh.hahn@daimler.com" , "stz.lauffer@daimler.com" , Juergen Boldt , "uml2-rtf@omg.org" Thread-Topic: EXTERNAL: Re: [Fwd: UML - sequence diagram] Thread-Index: AQHNgdUvNByeAbARak6RGKwvfwGZ6Jdo9J2AgACGPgD//70/UA== Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.260,0.0.0000 definitions=2012-08-24_06:2012-08-24,2012-08-24,1970-01-01 signatures=0 I was guessing that Steve was wanting to have get/set messages without specifically creating them as operations. Michael From: Tom Rutt [mailto:tom@coastin.com] Sent: Friday, August 24, 2012 1:27 PM To: Chonoles, Michael J Cc: Steve.Cook@microsoft.com; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com; Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: Re: [Fwd: UML - sequence diagram] On 8/24/2012 9:27 AM, Chonoles, Michael J wrote: Is that an issue? From Steve Cook's answer, I do not think there is a problem. The lifeline notation seems to cover this case. Tom From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 X-Forefront-Antispam-Report: CIP:131.107.125.8;KIP:(null);UIP:(null);IPV:NLI;H:TK5EX14HUBC101.redmond.corp.microsoft.com;RD:none;EFVD:NLI X-SpamScore: -16 X-BigFish: VS-16(zf7Izbb2dI98dI9371Ic89bh542Mc540Kc857h12d5K62a3Izz1202hzz8275bh8275dhz2fh2a8h668h839hd25hf0ah107ah1155h) From: Steve Cook To: "Chonoles, Michael J" , Tom Rutt CC: "stz.lauffer@daimler.com" , Juergen Boldt , "uml2-rtf@omg.org" , "issues@omg.org" Subject: RE: EXTERNAL: Re: [Fwd: UML - sequence diagram] Thread-Topic: EXTERNAL: Re: [Fwd: UML - sequence diagram] Thread-Index: AQHNgGjS96G20jAupUKQEWbkSy5qr5dn7E0AgAC4MLCAAFMTAIAAQxUAgAAAkACAAANqAA== Date: Fri, 24 Aug 2012 17:42:53 +0000 Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.166.18.100] X-OriginatorOrg: microsoft.com Yes, I was. Making it an issue would be a good idea. .It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates.. Thanks -- Steve From: Chonoles, Michael J [mailto:michael.j.chonoles@lmco.com] Sent: 24 August 2012 18:29 To: Tom Rutt Cc: Steve Cook; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com; Juergen Boldt; uml2-rtf@omg.org Subject: RE: EXTERNAL: Re: [Fwd: UML - sequence diagram] I was guessing that Steve was wanting to have get/set messages without specifically creating them as operations. Michael From: Tom Rutt [mailto:tom@coastin.com] Sent: Friday, August 24, 2012 1:27 PM To: Chonoles, Michael J Cc: Steve.Cook@microsoft.com; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com; Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: Re: [Fwd: UML - sequence diagram] On 8/24/2012 9:27 AM, Chonoles, Michael J wrote: Is that an issue? From Steve Cook's answer, I do not think there is a problem. The lifeline notation seems to cover this case. Tom From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 X-Forefront-Antispam-Report: CIP:131.107.125.8;KIP:(null);UIP:(null);IPV:NLI;H:TK5EX14HUBC102.redmond.corp.microsoft.com;RD:none;EFVD:NLI X-SpamScore: -22 X-BigFish: VS-22(zf7Izbb2dI98dI9371Ic89bh542Mc540Kc857h12d5K11f6N62a3Izz1202hzz8275bh8275dhz2fh54h48h2a8h668h839hd25hf0ah107ah) From: Steve Cook To: "stz.lauffer@daimler.com" , "michael.j.chonoles@lmco.com" CC: "juergen@omg.org" , "tom@coastin.com" , "issues@omg.org" Subject: RE: Antwort: RE: [Fwd: UML - sequence diagram] Thread-Topic: Antwort: RE: [Fwd: UML - sequence diagram] Thread-Index: AQHNgGjS96G20jAupUKQEWbkSy5qr5dn7E0AgAC4MLCAAFMTAIAABP2AgABDb/A= Date: Fri, 24 Aug 2012 17:48:25 +0000 Accept-Language: en-GB, en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.166.18.100] X-OriginatorOrg: microsoft.com The notation for Lifelines requires you to put the colon. This raises another UML issue: .Lifeline notation does not provide a satisfactory option for calling a static operation.. -- Steve From: stz.lauffer@daimler.com [mailto:stz.lauffer@daimler.com] Sent: 24 August 2012 14:45 To: michael.j.chonoles@lmco.com Cc: juergen@omg.org; Steve Cook; tom@coastin.com Subject: Antwort: RE: [Fwd: UML - sequence diagram] Dear Steve, Tom and Michael, Thank you very much for your answers. That helps a lot. Another question is still outstanding: > If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. -> This concerns the message. What do I write into the Lifeline of a static class? Only the name of the Class without ":"? Or maybe like in following figure with a stereotype? Please do not write to Michael Hahn, because he is in another depatment and is not directly concerned with UML. Does someone know how this address got to the OMG? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com michael.j.chonoles@lmco.com 24.08.2012 15:28 An Steve.Cook@microsoft.com, tom@coastin.com, michael.mh.hahn@daimler.com, stz.lauffer@daimler.com Kopie juergen@omg.org, uml2-rtf@omg.org Thema RE: [Fwd: UML - sequence diagram] Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Authentication-Results: cm-omr14 smtp.user=tom@coastenterprises.com; auth=pass (LOGIN) X-Authenticated-UID: tom@coastenterprises.com Date: Fri, 24 Aug 2012 13:56:31 -0400 From: Tom Rutt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 To: stz.lauffer@daimler.com CC: michael.j.chonoles@lmco.com, Tom Rutt , steve.cook@microsoft.com, "uml2-rtf@omg.org" Subject: Re: Antwort: RE: [Fwd: UML - sequence diagram] On 8/24/2012 9:45 AM, stz.lauffer@daimler.com wrote: Dear Steve, Tom and Michael, Thank you very much for your answers. That helps a lot. Another question is still outstanding: > If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. -> This concerns the message. What do I write into the Lifeline of a static class? Only the name of the Class without ":"? Or maybe like in following figure with a stereotype? I guess I would just use ":Calendar" and rely on the fact that the operation was defined using isStatic true. You could have that operation's invoke message sent to any lifeline on the diagram which had that class type designated. It might be a little confusing in cases where there are lifelines for multiple instances of a the same type, in which case you could send the static operation Invoke message to any of these lifelines. This is the way I am thinking about this case. Any other opinions are welcome. Tom Rutt Please do not write to Michael Hahn, because he is in another depatment and is not directly concerned with UML. Does someone know how this address got to the OMG? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com michael.j.chonoles@lmco.com 24.08.2012 15:28 An Steve.Cook@microsoft.com, tom@coastin.com, michael.mh.hahn@daimler.com, stz.lauffer@daimler.com Kopie juergen@omg.org, uml2-rtf@omg.org Thema RE: [Fwd: UML - sequence diagram] Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 Authentication-Results: cm-omr7 smtp.user=tom@coastenterprises.com; auth=pass (LOGIN) X-Authenticated-UID: tom@coastenterprises.com Date: Fri, 24 Aug 2012 14:09:15 -0400 From: Tom Rutt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 To: Steve Cook CC: "stz.lauffer@daimler.com" , "michael.j.chonoles@lmco.com" , "juergen@omg.org" , "issues@omg.org" Subject: Re: Antwort: RE: [Fwd: UML - sequence diagram] On 8/24/2012 1:48 PM, Steve Cook wrote: The notation for Lifelines requires you to put the colon. This raises another UML issue: .Lifeline notation does not provide a satisfactory option for calling a static operation.. Sounds like a good issue. However, its seems that making the message invocation of the static operation onto any lifeline corresponding to that class would be a solution. Tom -- Steve From: stz.lauffer@daimler.com [mailto:stz.lauffer@daimler.com] Sent: 24 August 2012 14:45 To: michael.j.chonoles@lmco.com Cc: juergen@omg.org; Steve Cook; tom@coastin.com Subject: Antwort: RE: [Fwd: UML - sequence diagram] Dear Steve, Tom and Michael, Thank you very much for your answers. That helps a lot. Another question is still outstanding: > If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. -> This concerns the message. What do I write into the Lifeline of a static class? Only the name of the Class without ":"? Or maybe like in following figure with a stereotype? Please do not write to Michael Hahn, because he is in another depatment and is not directly concerned with UML. Does someone know how this address got to the OMG? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com michael.j.chonoles@lmco.com 24.08.2012 15:28 An Steve.Cook@microsoft.com, tom@coastin.com, michael.mh.hahn@daimler.com, stz.lauffer@daimler.com Kopie juergen@omg.org, uml2-rtf@omg.org Thema RE: [Fwd: UML - sequence diagram] Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 Authentication-Results: cm-omr7 smtp.user=tom@coastenterprises.com; auth=pass (LOGIN) X-Authenticated-UID: tom@coastenterprises.com Date: Fri, 24 Aug 2012 14:09:15 -0400 From: Tom Rutt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 To: Steve Cook CC: "stz.lauffer@daimler.com" , "michael.j.chonoles@lmco.com" , "juergen@omg.org" , "issues@omg.org" Subject: Re: Antwort: RE: [Fwd: UML - sequence diagram] On 8/24/2012 1:48 PM, Steve Cook wrote: The notation for Lifelines requires you to put the colon. This raises another UML issue: .Lifeline notation does not provide a satisfactory option for calling a static operation.. Sounds like a good issue. However, its seems that making the message invocation of the static operation onto any lifeline corresponding to that class would be a solution. Tom -- Steve From: stz.lauffer@daimler.com [mailto:stz.lauffer@daimler.com] Sent: 24 August 2012 14:45 To: michael.j.chonoles@lmco.com Cc: juergen@omg.org; Steve Cook; tom@coastin.com Subject: Antwort: RE: [Fwd: UML - sequence diagram] Dear Steve, Tom and Michael, Thank you very much for your answers. That helps a lot. Another question is still outstanding: > If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. -> This concerns the message. What do I write into the Lifeline of a static class? Only the name of the Class without ":"? Or maybe like in following figure with a stereotype? Please do not write to Michael Hahn, because he is in another depatment and is not directly concerned with UML. Does someone know how this address got to the OMG? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com michael.j.chonoles@lmco.com 24.08.2012 15:28 An Steve.Cook@microsoft.com, tom@coastin.com, michael.mh.hahn@daimler.com, stz.lauffer@daimler.com Kopie juergen@omg.org, uml2-rtf@omg.org Thema RE: [Fwd: UML - sequence diagram] Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 X-Trusted-NM: yes Subject: Re: Antwort: RE: [Fwd: UML - sequence diagram] From: Nerijus Jankevicius Date: Mon, 27 Aug 2012 18:16:26 +0300 Cc: stz.lauffer@daimler.com, michael.j.chonoles@lmco.com, steve.cook@microsoft.com, "uml2-rtf@omg.org" To: Tom Rutt X-Mailer: Apple Mail (2.1084) Tom, Lifeline has no type. Type comes from ConnectableElement it represents. That means, we must have "fake" property created for every call to static operation (one per class). Should it be property of Interaction? Or should it be property of context Classifier? This is an issue. We have similar issues to represent calls to self/context. How context should be represented? As lifeline with keyword "self" or "this"? Other related issue - Interaction parameters. When Interaction itself is set as a method of Operation with parameters, how these are represented in Sequence Diagram? Can Parameter be represented as a lifeline? (Parameter is ConnectableElement). How value returning is represented? Are all these issues known, registered and maybe somehow clarified in UML 2.5? -- Nerijus Jankevicius SysML Product Manager OMG-Certified UML Professional No Magic Europe Savanoriu pr. 363, LT 49425 Kaunas, Lithuania P.O. box 2166, LT- 3000, Kaunas Phone: +370-37-324032 Fax: +370-37-320670 e-mail: nerijus@magicdraw.com WWW: http://www.magicdraw.com -- MagicDraw - UML made simple! On Aug 24, 2012, at 8:56 PM, Tom Rutt wrote: On 8/24/2012 9:45 AM, stz.lauffer@daimler.com wrote: Dear Steve, Tom and Michael, Thank you very much for your answers. That helps a lot. Another question is still outstanding: > If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. -> This concerns the message. What do I write into the Lifeline of a static class? Only the name of the Class without ":"? Or maybe like in following figure with a stereotype? I guess I would just use ":Calendar" and rely on the fact that the operation was defined using isStatic true. You could have that operation's invoke message sent to any lifeline on the diagram which had that class type designated. It might be a little confusing in cases where there are lifelines for multiple instances of a the same type, in which case you could send the static operation Invoke message to any of these lifelines. This is the way I am thinking about this case. Any other opinions are welcome. Tom Rutt Please do not write to Michael Hahn, because he is in another depatment and is not directly concerned with UML. Does someone know how this address got to the OMG? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com michael.j.chonoles@lmco.com 24.08.2012 15:28 An Steve.Cook@microsoft.com, tom@coastin.com, michael.mh.hahn@daimler.com, stz.lauffer@daimler.com Kopie juergen@omg.org, uml2-rtf@omg.org Thema RE: [Fwd: UML - sequence diagram] Is that an issue? From: Steve Cook [mailto:Steve.Cook@microsoft.com] Sent: Friday, August 24, 2012 4:42 AM To: Tom Rutt; michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: EXTERNAL: RE: [Fwd: UML - sequence diagram] I understand it. Most OO programming languages allow you to declare members of a class as static; such members can be accessed directly through the class itself, without any instance. In such cases the class acts as a namespace for its members, but does not act as a factory for instances. UML has the ability to mark features as isStatic. On an interaction diagram, each Lifeline represents a ConnectableElement. Often such a ConnectableElement is a Property of a Collaboration associated with the Interaction. The type of that Property provides the type associated with the Lifeline. If that type has an Operation marked as isStatic, then a Message whose signature is that Operation represents a call to the static Operation. It is a pity that UML does not provide the ability for Messages to correspond directly to property accesses and updates. -- Steve From: Tom Rutt [mailto:tom@coastin.com] Sent: 23 August 2012 22:31 To: michael.mh.hahn@daimler.com; stz.lauffer@daimler.com Cc: Juergen Boldt; uml2-rtf@omg.org Subject: Re: [Fwd: UML - sequence diagram] On 8/22/2012 9:17 AM, Juergen Boldt wrote: I am not sure I understand the question. " I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? " What is a static method of a class without an instance? The lifeline notation allows for just specifying the class or type of the connectable element which the lifeline represents. From UML 2.5 clause 17.3.4 Notation for Lifeline Lifeline A Lifeline is shown using a symbol that consists of a rectangle forming its .head. followed by a vertical line (which may be dashed) that represents the lifetime of the participant. Information identifying the lifeline is displayed inside the rectangle in the following format: ::= ([[.[. .].]] [: ] [decomposition]) | .self. ::= ::= .ref. [.strict.] where is the type referenced by the represented ConnectableElement. Note that, although the syntax allows it, cannot be empty. " So if you put in the notation ": ClassName" it represents any instance of that class. However, I would think that there has to be some instance to receive the message in any model. Tom Rutt Date: Wed, 22 Aug 2012 07:44:41 -0400 (EDT) Subject: [Fwd: UML - sequence diagram] From: "Joe Harth" To: juergen@omg.org, linda@omg.org, siegel@omg.org User-Agent: SquirrelMail/1.4.11 ---------------------------- Original Message ---------------------------- Subject: UML - sequence diagram From: stz.lauffer@daimler.com Date: Wed, August 22, 2012 7:09 am To: info@omg.org -------------------------------------------------------------------------- Dear sir or madam, I have a question concerning the sequence diagram in UML 2.4.1. Is it allowed to insert classes into a sequence diagram? When I talk about the elements in context of a sequence diagram would I talk about InstanceSpecifications (objects) or lifelines? At last I am not sure how to depict an access to a static method of a class that has no object (e.g. within the singleton-pattern). Is there an example available? Thank you in advance. Best regards, MSc. Tobias Lauffer Softwarearchitect PDM | Product Data Management E-Mail: stz.lauffer@daimler.com Internet: http://www.daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. Joe Harth Systems Administrator Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 121 fax: +1 781 444 0320 cell: +1 617 416 5352 email: joe@omg.org http://www.omg.org Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133 If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. -- ---------------------------------------------------- Tom Rutt email: tom@coastin.com; trutt@us.fujitsu.com Tel: +1 732 801 5744 Fax: +1 732 774 5133