MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Migration of tutorial model
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Migration of tutorial model

 Post Reply Post Reply
Author
Message
pimf View Drop Down
Member
Member


Joined: 25.Feb.2013
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote pimf Quote  Post ReplyReply Direct Link To This Post Topic: Migration of tutorial model
    Posted: 25.Feb.2013 at 22:05
Hi,

I'm working through the evaluation tutorial of MetaEdit+ and I finished the extension of the initial family tree metamodel with the male and female objects. I would like to adjust the graph of an instanced the initial metamodel (Simpson family tree) to the new meta model by changing the object type 'Person' to 'Male' or 'Female' so that the 'old' model complies to the evolved meta model. But I cannot find any function for accomplishing that and no description in the user's guides.
Can you help?

Thank you!
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post Posted: 25.Feb.2013 at 22:46
There's really no way for MetaEdit+ to know which of your "Person" objects should be changed to be "Male" objects and which "Female". In this case, the simplest thing is just to delete the existing few objects and recreate them, as the tutorial says.

Don't worry though: in a real-world example where you would be worried about the work of recreating them, you could script transforming the model. MetaEdit+ offers an API for doing this, or you can export the models to XML, transform with XSLT and import, or then generate the transformed XML directly for import.

Interestingly, in practice this kind of change tends to happen only at the stage where we are doing the first naive prototyping of a modeling language. It doesn't take long to see that in the Family Tree domain, you're going to need Male & Female rather than just Person!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.016 seconds.