Welcome to my home page!

EVL+Strace: a Novel Bidirectional Model Transformation Approach

Leila Samimi-Dehkordi

Introduction

Bidirectional transformation (Bx) is one of the key aspects in the model-driven development area. EVL+Strace is a bidirectional model-to-model transformation approach that uses the Epsilon Validation Language (EVL) to define inter-model consistency constraints. To provide a transformation, it is required to check that the source model is consistent with the target model and vice versa. If an inconsistency is recognized by an EVL constraint, that constraint proposes some possible fixing solutions to restore the consistency. In order to check inconsistencies between models, it is needed to keep their original information in a third model. This model is a correspondence model, which is called trace model. It is clear that a precise strongly typed trace model can provide more flexible ways for checking and fixing violations than a general one. Therefore, EVL+Strace proposes to use a trace metamodel, which is specific to the domains of source and target metamodel.
EVL+Strace process
The code of EVL+Strace and the specific trace metamodel are generated by the MoDEBiTE tool.

Case Study for TTC2017

Transformation Tool Contest 2017(TTC2017) provides a benchmarx (Families to Persons) case study.
The solution to this case study can be download from here.
The solution is implemented in two cases included automatic and interactive. The automatic file in the mentioned link is named F2PEVLStrace.evl (in resources/bxFiles). The interactive file is named BxViaEVLStrace.evl. The test cases are written for the automatic approach. However, EVL+Strace is usually used in an interactive way. Please read the readme.txt file for more information. If you do not want to use test cases and want to run EVL manually. Please, note these files of the mentioned link. Run the EVL+Strace based on the following task:
  1. First you need to register the packages in metamodel files. Therefore, right click on each .ecore file (in resources/metamodels), and click Register EPackages.
  2. After that, open the .evl file, which you want to run it. From the Project Explorer right click on the file and select Run as> Run configurations...
  3. From the opened Run Configuration window, double click on the EVL validation to create and set the source. (Note the address appeared in Source: field.)
  4. Select the Models tab.
  5. Click on the Add button to add the mentioned model files.
  6. To add the source model, from the select type of model window, select the EMF Model.
  7. From the Configure EMF Model window, click the Browse Workspace... and find the source.model file, and select it(be sure about the address of the file). Type "Source" for the Name: field.
  8. Again, click Add button to add another model. Note that, the field Name: for target.model, trace.model, and config.model should be "Target", "Families2Persons", and "Configuration" respectively
  9. At last, click Apply button, and then Run Button.
In the first run, if the models are empty, nothing will be happend. Now, add some elements in the source or target (or both) models and run again. If the automatic evl file is selected, you can see the results on the model files. However, If the interactive approach file is selected, the Validation view window is appeared. In it, the violated constraints are presented. To fix each violation, you need to right click on the message, and select on of the appeared fixing ways.
interactive EVL+Strace

Enjoy it!


contact: Leila Samimi ([l] DOT [samimi] AT [eng] DOT [ui] DOT [ac] DOT [ir]) (Please contact with this email if there is any question about the approach.)