Automatic Adaptation of Transformations based on Type Graph with Multiplicity
Résumé
Identical domain concepts reified in different metamodelling projects may be named, represented and connected differently. It turns out that a transformation defined for a particular metamodel cannot be directly used for another metamodel. To tackle this problem, we propose a process for automatically adapting legacy transformations. Such a transformation is adapted to the new metamodel that has a slightly different representation in comparison with the original one, while the transformation intention is preserved. To this end, we first introduce a Domain Specific Language (DSL) that allows users to describe the intended correspondences between elements of two metamodels. Then we provide an adaptation engine using these user-defined correspondences to adapt the transformation automatically. We also propose a graph-based typing relation that enables safe adaptations. Our approach has been prototyped with MOMENT2 and can be used with any framework based on the same graph transformation paradigm.