Using multiple models to describe a software system, often poses the challenge to keep them consistent automatically. While there is much research on preserving consistency of two models, fewer works address the specifics of keeping more than two models consistent. This thesis proposes a new programming language, allowing to create transformations for consistency preservation of more than two models. The language uses an intermediate metamodel, such that any transformation is first executed from an existing model into an intermediate model, and then into other models.
We start by looking at different possibilities of how consistency of multiple models can be preserved using only binary transformations. Subsequently, we show advantages of introducing an intermediate metamodel to the consistency preservation process. To support consistency preservation with intermediate metamodels, we thereupon introduce the Commonalities Language. It allows developers to declare metaclasses of the intermediate metamodel together with their attributes and references. The mappings from the intermediate model to other models and back are given directly at the mapped intermediate metaclasses, attributes, and references. To avoid duplication of logic, bidirectional expressions can be used for the mappings. The language is declarative to make understanding the transformations easy.
We have developed a prototypical implementation of it for the Vitruvius framework, which can be used in Eclipse for EMF models. The implementation serves as a proof of concept but is not yet suffciently mature to be used in practice. The idea of using intermediate metamodels to achieve scalable and modular consistency preservation for multiple models was already applied successfully to realistic scenarios in other works. To the best of our knowledge, no existing approach allows defining an intermediate metamodel together with the transformations for it in the same language.
| Related KIT institution | Institute for Program Structures and Data Organisation (IPD) |
|---|---|
| Language | English |
| KITopen ID | 1000076905 |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Referenced in | OpenAlex |