Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Advise on the ecore creation
Advise on the ecore creation [message #757141] Wed, 16 November 2011 17:28 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi,

I would like to get some advise on the creation of ecore for my metamodel.

My metamodel somewhat looks like what is attached in the file.

Also A1 is kind of subset to A2 and A2 to A3 and also they refer to each other.
So are the B1 , B2 and B3 and C.

I had three options in the mind

(a) Having a base A1 ecore and then extend it with A2 and so on.But that would also help me much because all the other entities like B1, C1 have to be on the extensible path also.
(b) Having a single ecore and then have self references.
(c) Having different ecores.But again this would generate lots of classes .

Please let me know if I am not clear in my problem description.

Cheers,
Saurav


Re: Advise on the ecore creation [message #757953 is a reply to message #757141] Thu, 17 November 2011 07:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Saurav,

Comments below.

On 16/11/2011 6:28 PM, saurav wrote:
> Hi,
>
> I would like to get some advise on the creation of ecore for my metamodel.
>
> My metamodel somewhat looks like what is attached in the file.
The arrows represent references?
>
> Also A1 is kind of subset to A2 and A2 to A3 and also they refer to each other.
Subset in what way?
> So are the B1 , B2 and B3 and C.
>
> I had three options in the mind
>
> (a) Having a base A1 ecore and then extend it with A2 and so on.But that would also help me much because all the other entities like B1, C1 have to be on the extensible path also.
What's an extensible path?
> (b) Having a single ecore and then have self references.
?
> (c) Having different ecores.But again this would generate lots of classes .
>
> Please let me know if I am not clear in my problem description.
It's not clear. Perhaps something meaningful would help. One could
bit of advice is to think about what you want your Java API to look
like. What are the methods, what are their types, how will the
interfaces be related? That will answer your, how should my Ecore model
look question...
>
> Cheers,
> Saurav


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:programmatically create model, edit and editor code and register editor plugin
Next Topic:emf-merge.xml - what does $$ mean and other questions
Goto Forum:
  


Current Time: Tue Apr 23 14:57:07 GMT 2024

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

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

Back to the top