Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Navigating association class(stereotype) in an OCL constraint
Navigating association class(stereotype) in an OCL constraint [message #1509000] Fri, 12 December 2014 22:34 Go to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
Hi,

I have created a UML profile in Papyrus. The profile has two stereotype A,B and an association called AB between them. Can I add a stereotype C to the association AB like the association class? Actually I can connect stereotype C with another association to the AB association but I am not sure if this is a correct action. If this definition is correct how can I navigate from stereotype A to stereotype C in an OCL constraint?

Thanks,
Azadeh
Re: Navigating association class(stereotype) in an OCL constraint [message #1509655 is a reply to message #1509000] Sat, 13 December 2014 11:58 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6769
Registered: July 2009
Senior Member
Hi

Try something like

self.base_Class.extension_C

to go from the A stereotype applied to a Class to the C stereotype
aplied to that Class.

Regards

Ed Willink

On 12/12/2014 22:34, azadeh jb wrote:
> Hi,
>
> I have created a UML profile in Papyrus. The profile has two stereotype
> A,B and an association called AB between them. Can I add a stereotype C
> to the association AB like the association class? Actually I can
> connect stereotype C with another association to the AB association but
> I am not sure if this is a correct action. If this definition is correct
> how can I navigate from stereotype A to stereotype C in an OCL constraint?
>
> Thanks, Azadeh
Previous Topic:Problems with Instance Specifications
Next Topic:papyrus apply a stereotype twice on an elmenet
Goto Forum:
  


Current Time: Wed Jul 08 12:09:55 GMT 2020

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

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

Back to the top