Towards a Definition of MDE

Table of Contents

Back to home page

It is striking to see however, that though MDE is supposed to be about precise modelling, MDE core concepts are not defined through precise models. […] In such conditions, it is very difficult to understand how the basic concepts of MDE are related, and how they can be mapped to existing Technical Spaces. — Jean-Marie Favre (Favre 2004)

Model Driven Engineering (MDE) is an established approach for the engineering of software systems. MDE distinguishes itself from related approaches due to its explicit focus on the modeling of entities within a software system, and on the transformations that can be applied to them. The first challenge facing a new MDE practitioner is in obtaining a rigorous definition of the discipline and its boundaries. The present document aims to guide the reader towards an understanding of the discipline, across a difficult landscape.

The document is organised as follows. First, Section What, if anything, is MDE? will get our bearings by positioning MDE against a number of computer science terms such as paradigm and methodology. Section MDE as a "body of knowledge" will then home in on the aspects related to a body of knowledge, and it is followed by a discussion of the hierarchical model of modeling approaches (Section A Hierarchy of Modeling Approaches). We will then discuss the complexities associated with the vast number of acronyms in the field (Section The Model-Driven Jungle), sketch out the boundaries of the discipline (Section Conditions at the Boundaries) and understand the role of pragmatism in modeling (Section Pragmatism in a Fuzzy Discipline). The document concludes with a brief discussion outlining our conclusions on the essence and role of MDE (Section Sketch of a Definition).

What, if anything, is MDE?

Defining the nature of Model Driven Engineering (MDE) is not quite as simple as it may appear. On one hand, informal characterisations abound, with most similar in spirit to what Cuesta proposes (emphasis ours):

[Within MDE, software] development processes are conceived as a series of steps in which specification models, as well as those which describe the problem domain, are continually refined, until implementation domain models are reached — along with those which make up the verification and validation of each model, and the correspondence between them. In [MDE], the steps in the development process are considered to be mere transformations between models.1, 2 (Cuesta 2016) (p. 1)

On the other hand, formal definitions are found wanting. To make matters worse, the literature remains unclear as to whether MDE is an approach (Favre 2004), a methodology (Brambilla, Cabot, and Wimmer 2012), a technical space (Bézivin 2005), a paradigm (Völter et al. 2013) (Giese, Hildebrandt, and Neumann 2010), all, some or neither of these. Furthermore, there is a degree of imprecision as to how most of these terms are generally used within computer science. As an example, Harper made known his dissatisfaction with the term paradigm in his essay "What, if anything, is a programming paradigm?", stating:

The trouble with programming paradigms is that it is rather difficult to say what one is, or how we know we have a new one. Without precise definitions, nothing precise can be said, and no conclusions can be drawn, either retrospectively or prospectively, about language design. (Harper 2017)

MDE literature steers into similarly difficult terrain. In (Brambilla, Cabot, and Wimmer 2012), Brambilla et al. call MDE a methodology but then hasten to qualify they (emphasis ours)

[…] realise that methodology is an overloaded term, which may have several interpretations. In this context we are not using the term to refer to a formal development process, but instead as a set of instruments and guidelines […]. (Brambilla, Cabot, and Wimmer 2012) (p. 7)

Those qualifications and the imprecision of the language raise concerns as to the usefulness of the term, so we choose instead to side with Matinnejad (Matinnejad 2011) as well as Asadi and Ramsin (Asadi and Ramsin 2008), who make a strong case for calling MDE an approach or a general framework rather than a methodology.3 With regards to the remaining terms: heeding Harper's warnings above, we feel one should refrain from using the term paradigm altogether; and, whilst agreeing with the notion of MDE as a technical space, we address it in what we believe to be a more fitting context (cf. Technical Spaces).

The matter does not rest here, though, for there are additional viewpoints that must be taken into account when attempting to characterise MDE.

MDE as a "body of knowledge"

In our opinion, MDE is more than an approach. For our purposes, MDE is to be understood as a large body of knowledge focused on the employment of modeling as the principal driver of software engineering activities. This choice of wording may appear controversial at first sight, given the position of Mussbacher et al. (Mussbacher et al. 2014) — who stated that "[unlike] most other fields of engineering, model-driven engineering does not have a Body of Knowledge (BoK) as such." Nevertheless, both views can be reconciled by accepting a distinction between a formal Body of Knowledge — which MDE lacks — and an informal body of knowledge — which we posit MDE is.

The idea can perhaps be clarified by recourse to the words of Fairley and Chaffer (emphasis ours):

Every profession is based on a body of knowledge, although that knowledge is not always defined in a concise manner. In cases where no formality exists, the body of knowledge is "generally recognized" by practitioners and may be codified in a variety of ways for a variety of different uses. (Bourque, Fairley, and others 2014)

This, we believe, is an apt description of MDE from the perspective of the MDE practitioner. But in order for a practitioner to make sense of this vast and diverse body of knowledge, it is useful to arrange it into some form of structure.

A Hierarchy of Modeling Approaches

One common method of overlaying structure into MDE is by way of classifying the application of modeling within the software development process. Here, researchers often distinguish between three different "levels" of modeling use, with each level seen as a super-set of the preceding (Ameller, n.d.) (Whittle, Hutchinson, and Rouncefield 2014) (Brambilla, Cabot, and Wimmer 2012). At the lowest level sits Model Based Engineering (MBE), where models are employed as a form of inter and intra-team communication and documentation. Within MBE, models are an input to the development process but, typically, software engineers are responsible for manually translating them into source code.

Next, at an intermediate level, sits Model Driven Development (MDD), where the software development process is driven entirely by models, and whose translation to code is performed by automated means. Finally, MDE is located at the highest level of the hierarchy; it orchestrates all engineering activities of a software system via modeling, including its development, operation and maintenance.4 Figure 1 provides a graphical illustration of these relationships.

mde_mdd_mbe.png

Figure 1: Hierarchy of modeling approaches. Source: Author's drawing based on a diagram by Whittle et al. (Whittle, Hutchinson, and Rouncefield 2014)

Whilst this hierarchy is conceptually convenient and appeals to the intuition of most software engineers — possibly because it echoes earlier notions around Object-Based and Object Oriented (OO) programming5 — in practice, the layers are notoriously difficult to tease apart and are thus of limited use outside introductory material. Indeed, empirical observations such as those of Hutchinson et al. (Hutchinson et al. 2011) reveal that they are closer to a spectrum of possibilities rather than a set of well-defined categories. As a result, the terms MDD and MDE are used interchangeably in much of the literature, and their presence often merely signifies "a model-driven approach" instead of the more technical meaning intended by the hierarchy. And, sadly, this is just the end of the beginning of the confusing terminology.

The Model-Driven Jungle

Matters are further complicated by the existence of a number of additional model-driven approaches and methodologies outside the hierarchy, similar in characteristics but differing in naming, such as Model-Driven Software Engineering (MDSE) (Brambilla, Cabot, and Wimmer 2012), Model-Driven Software Development (MDSD) (Völter et al. 2013), Model Driven Architecture (MDA) (Poole 2001), Model-Integrated Computing (MIC) (Sprinkle 2004), Model Oriented Programming (MOP) (Badreddin and Lethbridge 2013), Model-Based Software Engineering (MBSE) (Estefan and others 2007) and many others. The literature customarily refers to these as MDE variants (Brambilla, Cabot, and Wimmer 2012) (p. 10) or MDE flavours (Völter et al. 2013) (p. 11), but these are not precise terms. Interestingly, our review did not uncover a much needed taxonomy or a detailed comparative study characterising variants and their relationships, in what appears to be a glaring gap in the literature.

The need for grouping is certainly present, for it is cumbersome have to name variants individually when making arguments that apply to model-driven in general. Völter sought to redress this shortcoming by grouping variants under the umbrella term MD* (Völter 2009) and it quickly became established practice in the literature. However, it is not yet clear if the existence of this grouping has helped or hindered those seeking to understand what MDE is, specially as there is no rigorous definition of the members of the group nor of its properties, much beyond Völter's original — and uncharacteristically carefree — comment: "I use MD* as a common moniker for MDD, MDSD, MDE, MDA, MIC, and all the other abbreviations for basically the same approach." (Völter 2009)

With a hint of well-placed irony, Brambilia et al. spoke of the MD* Jungle (Brambilla, Cabot, and Wimmer 2012) (p. 9), adding that (emphasis ours) "MDE can be seen as the superset of all these variants, as any [MD*] approaches could fall under the MDE umbrella." (Brambilla, Cabot, and Wimmer 2012) (p. 10) It is in this sense that the term MDE is to be understood within this context — a sense, we believe, that is entirely consistent with its role as a body of knowledge. However, questions are then raised as to how best determine what is inside the informal body of knowledge, as opposed to what remains outside.

Conditions at the Boundaries

Much like the boundaries from within, the boundaries from without are no less troublesome to isolate. Over time, MDE has been integrated with a number of existing approaches and methodologies such as Software Product Line Engineering (SPLE) (Pohl, Böckle, and van Der Linden 2005), Agile (Matinnejad 2011), Generic Programming (GP) and Domain Engineering (Czarnecki 1998) — to name but a few — to an extent that its now difficult to determine whether certain concepts should be included as part of MDE's body of knowledge or are extraneous to it. A similar problem occurs with terms defined in its variants such as Model Driven Architecture (MDA), particularly for those which have wider applicability to modeling problems outside the MDE variant itself.

Our review of the literature did not uncover any adequate solutions to this thorny problem. Though by no means authoritative, our approach was to include in the present analysis all of the concepts that are relevant to our purposes and to use the notion of integrations where the concepts are more obviously external to MDEe.g., "Agile integration" (cf. Software Development Methodologies). But all the difficulties discussed thus far point out there may be a deeper malaise with the discipline itself.

Pragmatism in a Fuzzy Discipline

Jörges et al. encapsulated all of these themes in a manner that could be construed as an indictment to the entire endeavour (emphasis ours):

This "fuzziness" or lack of precision can be observed for most of the vocabulary used in the context of MD*. There is still no established fundamental theory of modeling and related concepts that would be comparable to the maturity achieved in other disciplines of computer science, such as compiler construction. (Jörges 2013) (p. 14)

However, behind the lack of precision lies method, as Bézivin's incisively explains: "[we] are not interested here by a theoretical definition […] but by an engineering one, i.e. a definition that will help users to implement and maintain systems." (Bézivin 2005) Citing Fowler (Fowler 2004), Brambilla et al. go as far as warning practitioners to "[b]eware of statements of pure principles: when it comes down to it, the real point of software engineering practice is to increase productivity, reduce errors, and cut code." (Brambilla, Cabot, and Wimmer 2012) (p. 23) Translated to the software development vernacular, MDE sees fuzziness as a feature, not a bug. This is a very significant statement of intent. For the remainder of this work we shall refer to it as the Pragmatism Principle, albeit restated in a slightly different form:6

When defining terms within MDE['s] body of knowledge, engineering definitions are preferred over theoretical definitions. That is, pragmatic definitions that help practitioners implement and maintain the systems of today, even when imprecise, are preferred over rigorous theoretical definitions that are either not yet completely formulated or that fail to meet the helpfulness criteria.

In our opinion, the Pragmatism Principle helps explain the apparent fuzziness of a significant subset of MDE's vocabulary for, in an environment where operational definitions abound, there is a permanent danger of duplication, inconsistencies and misunderstandings. After all, what suffices for one use case may not do at all for others. Nonetheless, we view the Pragmatism Principle as an important factor in MDE's progress and find it to be consistent with our view of MDE as a body of knowledge rather than a methodology or a paradigm, as we are no longer constrained by a need for rigour at all costs or even for overall consistency.

Note that the Pragmatism Principle is not a carte blanche to legitimise and empower sloppy reasoning. Rigour is still important to MDE, as are theoretical foundations, and the lack of fundamentals often appears in MDE research roadmaps (France and Rumpe 2007) (Mussbacher et al. 2014). The Pragmatism Principle merely justifies using an empiric approach to enable progress whilst the theoretic foundations are being laid, and presupposes the ability to make a trade-off between rigour and applicability where needed. And these trade-offs are not restricted to rigour and pragmatism either.

Sketch of a Definition

Seen from the present vantage point, Model Driven Engineering's (MDE) role — de facto if not de jure — has been to provide the building blocks from whence model-driven methodologies can be constructed, to the precise specifications of its practitioners. And, in this regard, it has been very successful. In our opinion, the main downside of the Pragmatism Principle — and thus, of the approach as a whole — is that it places a great deal of responsibility on the practitioner to make the correct trade-offs, therefore requiring a high-level of mastery of a large and complex cannon.7

At this juncture we can now sketch out our understanding of the discipline, which is as follows:

  • MDE is an informal body of knowledge centred on the employment of modeling as the principal driver of software engineering activities.
  • MDE promotes the pragmatic application of a family of related approaches to the development of software systems, with the intent of generating automatically a part or the totality of a software product, from one or more formal models and associated transformations (cf. Models and Transformations).
  • MDE is best understood as a vision rather than a concrete destination. A vision guides the general direction of the approach, but does not dictate the solution, nor does it outline the series of steps required to reach it.8
  • It is the responsibility of the MDE practitioner to select the appropriate tools and techniques from the MDE body of knowledge, in order to apply it adequately to a specific instance of the software development process. By doing so, the practitioner will create — implicitly or explicitly — an MDE variant.

Now that we have a basic understanding of MDE's reach9, we can turn our attention towards its core concepts: Models and Transformations.

Bibliography

Abran, Alain, James W Moore, P Bourque, Robert Dupuis, and LL Tripp. 2004. “Software Engineering Body of Knowledge.” Ieee Computer Society, Angela Burgess.
Ameller, David. n.d. “Sad: Systematic Architecture Design.” Universitat Politècnica de Catalunya.
Asadi, Mohsen, and Raman Ramsin. 2008. “Mda-Based Methodologies: An Analytical Survey.” In European Conference on Model Driven Architecture-Foundations and Applications, 419–31. Springer.
Badreddin, Omar, and Timothy C Lethbridge. 2013. “Model Oriented Programming: Bridging the Code-Model Divide.” In Proceedings of the 5th International Workshop on Modeling in Software Engineering, 69–75. IEEE Press.
Bourque, Pierre, Richard E Fairley, and others. 2014. Guide to the Software Engineering Body of Knowledge (Swebok (R)): Version 3.0. IEEE Computer Society Press.
Brambilla, Marco, Jordi Cabot, and Manuel Wimmer. 2012. Model-Driven Software Engineering in Practice. Synthesis Lectures on Software Engineering. Vol. 1. 1. Morgan & Claypool Publishers.
Bézivin, Jean. 2005. “Model Driven Engineering: An Emerging Technical Space.” In International Summer School on Generative and Transformational Techniques in Software Engineering, 36–64. Springer.
Cuesta, César Cuevas. 2016. “Metaherramientas Mde Para El Diseño de Entornos de Desarrollo de Sistemas Distribuidos de Tiempo Real.” Universidad de Cantabria.
Czarnecki, Krzysztof. 1998. Generative Programming: Principles and Techniques of Software Engineering Based on Automated Configuration and Fragment-Based Component Models. Computer Science Department, Technical University of Ilmenau.
Estefan, Jeff A, and others. 2007. “Survey of Model-Based Systems Engineering (Mbse) Methodologies.” Incose Mbse Focus Group 25 (8): 1–12.
Favre, Jean-Marie. 2004. “Towards a Basic Theory to Model Model Driven Engineering.” In 3rd Workshop in Software Model Engineering, Wisme, 262–71. Citeseer.
Fowler, Martin. 2004. Uml Distilled: A Brief Guide to the Standard Object Modeling Language. Addison-Wesley Professional.
France, Robert, and Bernhard Rumpe. 2007. “Model-Driven Development of Complex Software: A Research Roadmap.” In 2007 Future of Software Engineering, 37–54. IEEE Computer Society.
Giese, Holger, Stephan Hildebrandt, and Stefan Neumann. 2010. “Model Synchronization at Work: Keeping Sysml and Autosar Models Consistent.” In Graph Transformations and Model-Driven Engineering, 555–79. Springer.
Harper, Robert. 2017. “What, If Anything, Is a Programming Paradigm?” Cammbridge University Press Author’s Blog, 6This would be a good use for type refinements, which are discussed in.
Hutchinson, John, Jon Whittle, Mark Rouncefield, and Steinar Kristoffersen. 2011. “Empirical Assessment of Mde in Industry.” In Software Engineering (Icse), 2011 33rd International Conference on, 471–80. IEEE.
Jörges, Sven. 2013. Construction and Evolution of Code Generators: A Model-Driven and Service-Oriented Approach. Vol. 7747. Springer.
Matinnejad, Reza. 2011. “Agile Model Driven Development: An Intelligent Compromise.” In Software Engineering Research, Management and Applications (Sera), 2011 9th International Conference on, 197–202. IEEE.
Meyer, Bertrand. 1988. Object-Oriented Software Construction. Vol. 2. Prentice hall New York.
Mussbacher, Gunter, Daniel Amyot, Ruth Breu, Jean-Michel Bruel, Betty HC Cheng, Philippe Collet, Benoit Combemale, et al. 2014. “The Relevance of Model-Driven Engineering Thirty Years from Now.” In International Conference on Model Driven Engineering Languages and Systems, 183–200. Springer.
Pohl, Klaus, Günter Böckle, and Frank J van Der Linden. 2005. Software Product Line Engineering: Foundations, Principles and Techniques. Springer Science & Business Media.
Poole, John D. 2001. “Model-Driven Architecture: Vision, Standards and Emerging Technologies.” In Workshop on Metamodeling and Adaptive Object Models, Ecoop. Vol. 50. Citeseer.
Sprinkle, Jonathan. 2004. “Model-Integrated Computing.” Ieee Potentials 23 (1): 28–30.
Völter, Markus. 2009. “Md* Best Practices.” Journal of Object Technology 8: 79–102.
Völter, Markus, Thomas Stahl, Jorn Bettin, Arno Haase, and Simon Helsen. 2013. Model-Driven Software Development: Technology, Engineering, Management. John Wiley & Sons.
Whittle, Jon, John Hutchinson, and Mark Rouncefield. 2014. “The State of Practice in Model-Driven Engineering.” Ieee Software 31 (3): 79–85.

Footnotes:

1

This quote was translated from the original Spanish by the author. The reader is advised to consult the primary source.

2

The nature of models within MDE, as well as that of transformations, is analysed in greater detail in Models and Transformations.

3

This matter is argued further in Software Development Methodologies, where we address the relationship between MDE and the software development process, and articulate a stronger argument as to why MDE should not be considered to be a methodology. Furthermore, we also provide additional context on software development methodologies.

4

Here we resort to Bourque et al.'s definition of Software Engineering: "[…] the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software; that is, the application of engineering to software." (Abran et al. 2004)

5

The adjectives based, oriented, and driven are rife throughout computer science and software engineering, obscuring somewhat their intent and differences. For example, Meyer is not entirely convinced about how oriented and based are used in the OO context (emphasis his): "Because the English words based and oriented do not readily evoke the conceptual difference between encapsulation techniques and OO languages, 'object-based' is a little hard to justify, especially to newcomers." (Meyer 1988) (p. 1100) The modeling community largely circumvented such difficulties by giving preference to drivene.g. model-driven — over the arguably more obvious orientede.g. "model-oriented". As Stahl et al. put it, "The adjective 'driven' in 'Model-Driven Software Development' — in contrast to 'based' — emphasizes that this paradigm assigns models a central and active role: they are at least as important as source code." (Völter et al. 2013) (p. 4)

6

The term pragmatism was chosen as an allusion to one of Stachowiak's fundamental model properties (cf. Why Model?) because we see MDE as a model too. Alas, a detailed discussion of the topic would take us too far afield, befitting the philosophy of modeling in software development.

7

Take the decision to use modeling in the first place. Whilst the enumeration of choices presented in Determining the Modeling Approach appears to convey simplicity, experience says otherwise. In order to make an informed decision, one must first master both the theory of MDE as well as the thorny practical aspects of its application, and these only reveal themselves when applied to a sufficiently large project during sufficiently long timescales — as we ourselves discovered.

8

This vision is articulated clearly by France and Rumpe:

In the MDE vision, domain architects will be able to produce domain specific application development environments (DSAEs) using what we will refer to as MDE technology frameworks. Software developers will use DSAEs to produce and evolve members of an application family. A DSAE consists of tools to create, evolve, analyze, and transform models to forms from which implementation, deployment and runtime artifacts can be generated. Models are stored in a repository that tracks relationships across modeled concepts and maintains metadata on the manipulations that are performed on models. (France and Rumpe 2007)

9

Those requiring a more thorough introduction to the subject matter are guided towards (Brambilla, Cabot, and Wimmer 2012) and (Völter et al. 2013).