Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » creating association in uml profiles
creating association in uml profiles [message #1050182] Fri, 26 April 2013 20:45 Go to next message
Jeni Martin is currently offline Jeni MartinFriend
Messages: 42
Registered: November 2012
Member
Hi All,

I want to create association in my UML profile by the use of EMF. In papyrus, it allows me to have association between two metaclasses. But in EMF, I have to create properties as associations are properties. But don't know what should I set in the properties?

for example, I have two metaclasses A and B, and I want to create a composition from A to B. So I created an attribute (property) for metaclass A and called it b. now in the Properties window I have to set Aggregation to composition. How about others like Association, type, ...


Thanks
Re: creating association in uml profiles [message #1050189 is a reply to message #1050182] Fri, 26 April 2013 20:57 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Jeni,

I'd suggest having a look at what the
TypeOperations::createAssociation(...) method does.

Also, you might create an association in Papyrus and open the model's
*.uml resource in the UML Editor to see what the structure of the
association and its end properties looks like.

HTH,

Christian



On 2013-04-26 20:45:29 +0000, Jeni Martin said:

> Hi All,
>
> I want to create association in my UML profile by the use of EMF. In
> papyrus, it allows me to have association between two metaclasses. But
> in EMF, I have to create properties as associations are properties. But
> don't know what should I set in the properties?
>
> for example, I have two metaclasses A and B, and I want to create a
> composition from A to B. So I created an attribute (property) for
> metaclass A and called it b. now in the Properties window I have to set
> Aggregation to composition. How about others like Association, type, ...
>
>
> Thanks
Re: creating association in uml profiles [message #1051215 is a reply to message #1050189] Sun, 28 April 2013 11:55 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

You could also looks at the "Introduction to UML2 Profiles" sectionm in
the UML2 documentation.

Regards

Ed Willink

On 26/04/2013 21:57, Christian W. Damus wrote:
> Hi, Jeni,
>
> I'd suggest having a look at what the
> TypeOperations::createAssociation(...) method does.
>
> Also, you might create an association in Papyrus and open the model's
> *.uml resource in the UML Editor to see what the structure of the
> association and its end properties looks like.
>
> HTH,
>
> Christian
>
>
>
> On 2013-04-26 20:45:29 +0000, Jeni Martin said:
>
>> Hi All,
>>
>> I want to create association in my UML profile by the use of EMF. In
>> papyrus, it allows me to have association between two metaclasses.
>> But in EMF, I have to create properties as associations are
>> properties. But don't know what should I set in the properties?
>>
>> for example, I have two metaclasses A and B, and I want to create a
>> composition from A to B. So I created an attribute (property) for
>> metaclass A and called it b. now in the Properties window I have to
>> set Aggregation to composition. How about others like Association,
>> type, ...
>>
>>
>> Thanks
>
>
Previous Topic:How can I get the order among SD Lifeline events?
Next Topic:isAttribute always returns false
Goto Forum:
  


Current Time: Thu Mar 28 18:57:15 GMT 2024

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

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

Back to the top