|
Re: creating association in uml profiles [message #1050189 is a reply to message #1050182] |
Fri, 26 April 2013 20:57 |
|
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 |
Ed Willink 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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06683 seconds