MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Model Transformation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Model Transformation

 Post Reply Post Reply
Author
Message
Gali View Drop Down
Contributor
Contributor
Avatar

Joined: 28.Jun.2018
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gali Quote  Post ReplyReply Direct Link To This Post Topic: Model Transformation
    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

Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 641
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Gali View Drop Down
Contributor
Contributor
Avatar

Joined: 28.Jun.2018
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gali Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 641
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post 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 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 API to read the first model and create the second with the desired contents.
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.063 seconds.