Generalization of an Aggregation [message #476638] |
Fri, 16 November 2007 09:08  |
Eclipse User |
|
|
|
Hi there,
I'm wondering if (or how) I can model a generalization of an aggregation
like the one in the provided picture? Is there a way to model this and more
important a way to generate the appropriate code from it?
Thanks in advance!
Cheers,
S
|
|
|
|
Re: Generalization of an Aggregation [message #476643 is a reply to message #476641] |
Fri, 16 November 2007 13:19  |
Eclipse User |
|
|
|
A posting entitled 'uml2ecore, ecore attributes marked as volatile' on 10/19
is very similar to what you are looking for. Please have a look at that.
- James
"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:fhkg9c$1sl$1@build.eclipse.org...
> Ho Soeren,
>
> Creating a generalization between the associations is possible. It would
> be done in the same manner as creating generalization between two classes.
> Perhaps have a look at the getting started articles for tips on creating
> generalizations or I can post the .uml model that describes what you want.
> In terms of code generation, the associations don't translate over into
> EMF and therefore will not come across in your code. To get what you
> are looking for in the code you will have to redefine the properties in
> the specializing Aircraft and Pilot. One of the properties would have its
> type changed and the other the type and multiplicity changed.
>
> I will post a model a little later.
>
> - James.
>
>
> "Soeren Kemmann" <Soeren.Kemmann@iese.fraunhofer.de> wrote in message
> news:fhk884$adf$1@build.eclipse.org...
>> Hi there,
>>
>> I'm wondering if (or how) I can model a generalization of an aggregation
>> like the one in the provided picture? Is there a way to model this and
>> more important a way to generate the appropriate code from it?
>> Thanks in advance!
>>
>> Cheers,
>> S
|
|
|
Re: Generalization of an Aggregation [message #625536 is a reply to message #476638] |
Fri, 16 November 2007 11:25  |
Eclipse User |
|
|
|
Ho Soeren,
Creating a generalization between the associations is possible. It would
be done in the same manner as creating generalization between two classes.
Perhaps have a look at the getting started articles for tips on creating
generalizations or I can post the .uml model that describes what you want.
In terms of code generation, the associations don't translate over into EMF
and therefore will not come across in your code. To get what you are
looking for in the code you will have to redefine the properties in the
specializing Aircraft and Pilot. One of the properties would have its type
changed and the other the type and multiplicity changed.
I will post a model a little later.
- James.
"Soeren Kemmann" <Soeren.Kemmann@iese.fraunhofer.de> wrote in message
news:fhk884$adf$1@build.eclipse.org...
> Hi there,
>
> I'm wondering if (or how) I can model a generalization of an aggregation
> like the one in the provided picture? Is there a way to model this and
> more important a way to generate the appropriate code from it?
> Thanks in advance!
>
> Cheers,
> S
|
|
|
Re: Generalization of an Aggregation [message #625540 is a reply to message #476641] |
Fri, 16 November 2007 13:19  |
Eclipse User |
|
|
|
A posting entitled 'uml2ecore, ecore attributes marked as volatile' on 10/19
is very similar to what you are looking for. Please have a look at that.
- James
"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:fhkg9c$1sl$1@build.eclipse.org...
> Ho Soeren,
>
> Creating a generalization between the associations is possible. It would
> be done in the same manner as creating generalization between two classes.
> Perhaps have a look at the getting started articles for tips on creating
> generalizations or I can post the .uml model that describes what you want.
> In terms of code generation, the associations don't translate over into
> EMF and therefore will not come across in your code. To get what you
> are looking for in the code you will have to redefine the properties in
> the specializing Aircraft and Pilot. One of the properties would have its
> type changed and the other the type and multiplicity changed.
>
> I will post a model a little later.
>
> - James.
>
>
> "Soeren Kemmann" <Soeren.Kemmann@iese.fraunhofer.de> wrote in message
> news:fhk884$adf$1@build.eclipse.org...
>> Hi there,
>>
>> I'm wondering if (or how) I can model a generalization of an aggregation
>> like the one in the provided picture? Is there a way to model this and
>> more important a way to generate the appropriate code from it?
>> Thanks in advance!
>>
>> Cheers,
>> S
|
|
|
Powered by
FUDForum. Page generated in 0.06822 seconds