Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » UML2 class of a capsule
UML2 class of a capsule [message #1743391] Wed, 14 September 2016 21:23 Go to next message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 45
Registered: September 2016
Member
Hi,

I need UML2 object associated to a capsule object.
Capsule type comes from org.eclipse.papyrusrt.xtumlrt.common and I need an associated object from org.eclipse.uml2.uml.Class.

Any idea is appreciated.

Thanks!
Re: UML2 class of a capsule [message #1743752 is a reply to message #1743391] Mon, 19 September 2016 12:51 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1176
Registered: July 2009
Location: Canada
Senior Member

Hi,

The xtumlrt metamodel describes the intermediate models used by the code generation system in Papyrus-RT. The contents of your Papyrus-RT UML-RT models are not instances of this metamodel.
Rather, they are UML models with the UML-RT profile(s) applied. So, a capsule in your model is simply a UML Class that has the Capsule stereotype applied. So, in fact, you should already have
the org.eclipse.uml2.uml.Class object in hand.

HTH,

Christian
Re: UML2 class of a capsule [message #1743785 is a reply to message #1743752] Mon, 19 September 2016 15:33 Go to previous messageGo to next message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 45
Registered: September 2016
Member
Hi Christian,

Thanks for the reply. So I should find the type of that Capsule (along with other Papyrus-RT model element types) in org.eclipse.papyrusrt.umlrt.profile.UMLRealTime. Is that right?
Re: UML2 class of a capsule [message #1743791 is a reply to message #1743785] Mon, 19 September 2016 16:04 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1176
Registered: July 2009
Location: Canada
Senior Member

Not exactly. That is the generated interface for the Capsule stereotype. The actual capsule type is a Class to which that this stereotype applied. You will find it via the base_Class reference of an application of the stereotype.

HTH,

Christian
Re: UML2 class of a capsule [message #1743799 is a reply to message #1743791] Mon, 19 September 2016 16:45 Go to previous message
reza ahmadi is currently offline reza ahmadiFriend
Messages: 45
Registered: September 2016
Member
That's right. Thanks!
Previous Topic:getting incoming/outcoming events of a protocol object in Papyrus-RT
Next Topic:Getting Parts of a capsule (some type casting issue)
Goto Forum:
  


Current Time: Thu Sep 20 20:07:24 GMT 2018

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

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

Back to the top