Print Page | Close Window

Model Transformation

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: http://www.metacase.com/forums/forum_posts.asp?TID=888
Printed Date: 28.Mar.2024 at 17:32
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Model Transformation
Posted By: Gali
Subject: Model Transformation
Date Posted: 28.Jun.2018 at 02:21
hello,

I have some questions about MetaEdit+.

I designed a user interface conceptual modeling language,
and now I have designed a user interface logic language (based on.Net),
which MetaEdit+ can define mapping rules to implement conceptual models to logical models.

Gali




Replies:
Posted By: stevek
Date Posted: 28.Jun.2018 at 10:11
Hello Gali,

Good to hear that you were able to create your languages. Feel free to ask your questions!

Steve


Posted By: Gali
Date Posted: 28.Jun.2018 at 12:55
Hello Steve,

I want to transform PIM to PSM, just like QVT in Eclipse, which can transform one element of the source model into the corresponding element of the target model. How does MetaEdit+ implement?

Gali


Posted By: stevek
Date Posted: 28.Jun.2018 at 13:55
Generally it's better to avoid creating copies which then get edited. Have a think about the division of responsibility between your modeling languages, either aiming for an integrated language that solves both issues, or else high cohesion and low coupling (no copies!) between the two. Rather than copies, think of referencing - either by having the same object directly in both models (Copy - Paste by default creates a reference in MetaEdit+), or a wrapper object referring to the original object via a property.

For the rare cases where you genuinely want to automatically make one model as a disconnected copy of another, with both evolving separately, you can make a generator that creates the second model as http://www.metacase.com/support/55/manuals/mwb/Mw-8_2.html" rel="nofollow - XML and imports it. (There's an example of this in EAST-ADL project: on BBW_FDA: DesignFunctionType, run Produce ErrorModel.) If you want some copying and some referencing, you can use the http://www.metacase.com/support/55/manuals/mwb/Mw-9.html" rel="nofollow - API to read the first model and create the second with the desired contents.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net