Model Transformation |
Post Reply |
Author | |
Gali
Contributor Joined: 28.Jun.2018 Points: 10 |
Post Options
Thanks(0)
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 |
|
stevek
MetaCase Joined: 11.Mar.2008 Points: 641 |
Post Options
Thanks(0)
|
Hello Gali,
Good to hear that you were able to create your languages. Feel free to ask your questions! Steve
|
|
Gali
Contributor Joined: 28.Jun.2018 Points: 10 |
Post Options
Thanks(0)
|
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
|
|
stevek
MetaCase Joined: 11.Mar.2008 Points: 641 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |