Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Metamodel hierarchies / model layers
Metamodel hierarchies / model layers [message #901796] Tue, 14 August 2012 15:41 Go to next message
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 127
Registered: September 2011
Senior Member
Hi,

how can I store model instances of ecore models?

To be more specific: I wonder how I would store an UML object diagram (runtime-instances), that is typed over a given UML class diagram.

The class hierarchy would look like this:
M3: Ecore model defined in an .ecore file
M2: UML model defined in an .ecore file
M1: Domain model defined in an .uml file
M0: Instance model defined in an ??? file

In other words: I want to create dynamic instances of UML like it can be done in Ecore and store it into a file.


Regards,
Simon
Re: Metamodel hierarchies / model layers [message #901803 is a reply to message #901796] Tue, 14 August 2012 15:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Comments below.

On 14/08/2012 5:41 PM, Goood Guy wrote:
> Hi,
>
> how can I store model instances of ecore models?
Using resources as explained in the introductory overview.
>
> To be more specific: I wonder how I would store an UML object diagram
> (runtime-instances), that is typed over a given UML class diagram.
I can't parse this "typed over" phrase.
>
> The class hierarchy would look like this:
> M3: Ecore model defined in an .ecore file
> M2: UML model defined in an .ecore file
> M1: Domain model defined in an .uml file
> M0: Instance model defined in an ??? file
UML doesn't directly provide a way to create instances.
>
> In other words: I want to create dynamic instances of UML like it can
> be done in Ecore and store it into a file.
UML doesn't support that. You can convert your UML model to an Ecore
model (like the UML2 importer does) and then create instance of that.
>
>
> Regards,
> Simon


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Metamodel hierarchies / model layers [message #901944 is a reply to message #901803] Wed, 15 August 2012 08:41 Go to previous messageGo to next message
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 127
Registered: September 2011
Senior Member
With "typed over" I mean that the model instance is compliant to its metamodel, i.e. the single class instances have a type from the metamodel.

I know that I can convert an UML model to an Ecore model, but I was wondering if EMF has a mechanism that support several model layers / the instantiation of metamodels (uncoupled from UML).
Re: Metamodel hierarchies / model layers [message #901953 is a reply to message #901944] Wed, 15 August 2012 09:46 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
EMF has support for the Ecore model and creating instances that conform
to an Ecore model. Any other model, such as UML2, must provide a way to
create instances based on semantics that only the model implementer can
possibly know.


On 15/08/2012 10:41 AM, Goood Guy wrote:
> With "typed over" I mean that the model instance is compliant to its
> metamodel, i.e. the single class instances have a type from the
> metamodel.
>
> I know that I can convert an UML model to an Ecore model, but I was
> wondering if EMF has a mechanism that support several model layers /
> the instantiation of metamodels (uncoupled from UML).


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Handle more than one editor plugin
Next Topic:Overriding standard ECore validation messages
Goto Forum:
  


Current Time: Thu Mar 28 11:42:24 GMT 2024

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

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

Back to the top