Advise on the ecore creation [message #757141] |
Wed, 16 November 2011 17:28 |
saurav sarkar 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
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
|
|
|
Re: Advise on the ecore creation [message #757953 is a reply to message #757141] |
Thu, 17 November 2011 07:01 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03261 seconds