Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Generalization of an Aggregation
Generalization of an Aggregation [message #476638] Fri, 16 November 2007 14:08 Go to next message
Soeren Kemmann is currently offline Soeren KemmannFriend
Messages: 15
Registered: July 2009
Junior Member
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 #476641 is a reply to message #476638] Fri, 16 November 2007 16:25 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 #476643 is a reply to message #476641] Fri, 16 November 2007 18:19 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 16:25 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 18:19 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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
Previous Topic:Removal of unavailable profiles
Next Topic:Code generated from UML with OCL
Goto Forum:
  


Current Time: Thu Apr 25 05:22:58 GMT 2024

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

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

Back to the top