Home » Modeling » EMF » 3 or 4 layers
| | | |
Re: 3 or 4 layers [message #758073 is a reply to message #758051] |
Mon, 21 November 2011 20:36 |
Hallvard Traetteberg Messages: 673 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
M0 is simply the instances of the modeled classes, e.g. Library and Book
instances. There is no Ecore diagram kind for this, usually you find
them in xmi files, e.g. the ones you get when creating a dynamic
instance by right-clicking on an EClass in the Ecore editor.
In my opinion, the levels are only meaningful relative to each other,
and usually you only need to think about two levels at a time: models
and (instance) data. When building model-based tools, I find it easier
to use these terms (model and data) rather than meta-model and model.
Hallvard
On 21.11.11 21.08, elhamlaoui wrote:
> Hi Ed,
>
> I was hoping that i you were the one who answer to this, im lucky :)
>
> It deponds it could be M1 or M0(according to OMG layer), what I try to
> achieve is projection of the OMG layer on the EMF.IN the EMF i could got
> just model->MM->MMM(Ecore), if we take an example of a class diagram in
> UML:
>
> Instance class diagram-> class diagram-> MMUML->MOF
>
> What it would be the intance of a class diagram in EMF?! :roll:
> Thanks
>
>
>
>
>
|
|
| | | |
Re: 3 or 4 layers [message #759741 is a reply to message #759737] |
Tue, 29 November 2011 19:45 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Given the Library instance is M0, the Library model is M1, then Ecore is
M2, and the Ecore model for Ecore is M3. These layers are always
relative and there's no reason to think they should stop at 4 levels.
For example, given a Library instance M0, who's model is an XML Schema
M1, and we have an XML Schema for Schemas M2, which has an XML Schema
Ecore model M3, then we have the Ecore model for Ecore as M4. Of course
Ecore.ecore in platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore
is itself just an instance and is M0. Your mistake is you're trying to
absolutely pin a particular thing to a given level, when the whole point
is that levels are relative. Going down are instances, going up are
models/descriptions of instances.
On 29/11/2011 8:26 PM, elhamlaoui wrote:
> Hi,
>
> the link proposed her,
> http://www2.imm.dtu.dk/~pk/images/meta-levels.pdf explicit my concern.
> According to it, if we focus on library model, we can see that library
> model(M1) is an instance of Ecore(M3) Where is The M2 in this case??
>
> Any ideas?
> Thanks in advance
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | | |
Goto Forum:
Current Time: Wed Apr 24 15:38:48 GMT 2024
Powered by FUDForum. Page generated in 0.03007 seconds
|