Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Comment Elements, Applied comments, and Owned comments
icon5.gif  Comment Elements, Applied comments, and Owned comments [message #1696426] Tue, 26 May 2015 12:39 Go to next message
Donald Pellegrino is currently offline Donald PellegrinoFriend
Messages: 4
Registered: May 2015
Location: Collegeville, PA USA
Junior Member
In Papyrus 1.0.2 UML, I see that the Properties tab for Components includes a Comments section with separate enumerations of "Applied comments" and "Owned comments." What is the difference between these two different types of comments?

In addition, a Comment can be added as an Element to a Model. What are the guidelines or best practices for selecting between the use of a Comment element, Applied comments, and Owned comments?
Re: Comment Elements, Applied comments, and Owned comments [message #1696450 is a reply to message #1696426] Tue, 26 May 2015 14:22 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 920
Registered: February 2011
Senior Member
Hi,

The "ownedComment" is a containment relationship between the owner and the comment. It has little semantics value. The "Applied Comments" is the list of comments annotating the current element (It is the opposite of the Comment#annotatedElement relationship).

In Papyrus, when you add an "Applied Comment", it is also added (Under the hood) to "Owned Comments", but we don't display it in the properties view because it would be mostly redundant.

When you create a Comment in a Class Diagram (on the canvas), it is added to the Diagram's Context "Owned Comments". Then, when you create a Comment Link between this comment and a Class, it is added to the "Applied Comments" of the Class

HTH,
Camille


Camille Letavernier
Re: Comment Elements, Applied comments, and Owned comments [message #1696467 is a reply to message #1696450] Tue, 26 May 2015 15:02 Go to previous message
Donald Pellegrino is currently offline Donald PellegrinoFriend
Messages: 4
Registered: May 2015
Location: Collegeville, PA USA
Junior Member
Thanks for the clarification. The three comment types make more sense to me now.
Previous Topic:Calling Matlab from Call Behaviour activities
Next Topic:Deploying Component Instances
Goto Forum:
  


Current Time: Wed Feb 26 02:07:13 GMT 2020

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

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

Back to the top