When and How to Use Multilevel Modelling

Juan de Lara, Esther Guerra, Jesús Sánchez Cuadrado

ACM Transactions on Software Engineering and Methodology · 2014 · 132 citations · 39 references

Concepts

TL;DR

Model‑Driven Engineering treats models as primary artifacts, traditionally using a two‑level metamodeling approach, but multilevel modeling extends this to arbitrary levels, promising simpler model descriptions yet with limited empirical evaluation, leaving practitioners uncertain about when and how to apply it. The article aims to identify situations where multilevel modeling is advantageous and to outline recurring patterns and idioms. To evaluate pattern frequency, the authors analyzed a broad set of existing two‑level DSMLs across domains to determine when their elements could be reorganized into more than two metalevels. The analysis revealed that such multilevel‑eligible patterns are common, especially in software architecture and enterprise/process modeling, where they appear frequently with a high average occurrence per metamodel.

Abstract

Model-Driven Engineering (MDE) promotes models as the primary artefacts in the software development process, from which code for the final application is derived. Standard approaches to MDE (like those based on MOF or EMF) advocate a two-level metamodelling setting where Domain-Specific Modelling Languages (DSMLs) are defined through a metamodel that is instantiated to build models at the metalevel below. Multilevel modelling (also called deep metamodelling ) extends the standard approach to metamodelling by enabling modelling at an arbitrary number of metalevels, not necessarily two. Proposers of multilevel modelling claim this leads to simpler model descriptions in some situations, although its applicability has been scarcely evaluated. Thus, practitioners may find it difficult to discern when to use it and how to implement multilevel solutions in practice. In this article, we discuss those situations where the use of multilevel modelling is beneficial, and identify recurring patterns and idioms. Moreover, in order to assess how often the identified patterns arise in practice, we have analysed a wide range of existing two-level DSMLs from different sources and domains, to detect when their elements could be rearranged in more than two metalevels. The results show this scenario is not uncommon, while in some application domains (like software architecture and enterprise/process modelling) pervasive, with a high average number of pattern occurrences per metamodel.

References

39