5-related_work.tex 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. \section{Related Work}
  2. \label{sec:related_work}
  3. The problems we solve have already been partially addressed.
  4. But while our approach solves several problems simultaneously, by taking a different view on the type/instance relation, other approaches are more conservative, in that they solve only one specific problem by making changes to the current state of the art.
  5. The main motivator for our research was the credo ``model everything at the right level of abstraction, using the most appropriate formalism''~\cite{MPM}, as popularized in Multi-Paradigm Modelling (MPM).
  6. Naturally, this applies to the system being modelled.
  7. We, however, also apply this to the tool, which will be used for the modelling, as there would be no reason to consider the tool as a special entity for which this credo does not hold.
  8. As a natural step then, the conformance algorithm was made explicitly modelled.
  9. It is not only the credo which we take over from MPM, but we also create our tool to be used in an MPM setting.
  10. For example, our notion of conformance could possibly be used for multi-view and multi-abstraction modelling.
  11. Further research is required in this direction.
  12. While the conformance relation has, to the best of our knowledge, always been hardcoded as foundational aspect of the tool, the type mapping has frequently been made explicit, certainly in theory.
  13. For example, de Lara \textit{et al.}~\cite{FromTypesToTypeRequirements,GenericityForModelManagement} have explicitly defined type mappings (\textit{explicit bindings}) for their concepts, which are an alternative form of model typing~\cite{ConstraintBasedModelTypes}.
  14. VPM~\cite{GenericAndMetaTransformations} made the \textit{instanceOf} links available just like any other element, thus avoiding hardcoded relations.
  15. Our typing relation is actually a relation between models, similar to the relations defined for megamodelling (\textit{e.g.}, \cite{MMTF,MMINT}).
  16. Kurtev \textit{et al.}~\cite{ModelBasedDSLFrameworks} proposes to define a model as a triple, containing the model, the metamodel, and the type mapping.
  17. No mention is made, however, about making this relation depend on the conformance relation.
  18. Zschaler~\cite{ConstraintBasedModelTypes} already proposed to make explicit all constraints on metamodels in the model type, rather than hiding them away in the matching relation.
  19. We also believe that constraints should not be hidden in the matching relation, but instead of putting it in the model type, we make the matching relation explicit.
  20. Models have also often been represented using a graph representation, for example in VMTS~\cite{VMTS}, or in the framework proposed by Kurtev \textit{et al.}~\cite{ModelBasedDSLFrameworks}.
  21. Despite their mapping to graphs, they include special edges, such as an inheritance edge.
  22. Such edges are not defined in general graph theory, and should therefore be avoided as it mixes parts of the structure (\textit{i.e.}, the actual graph) with the semantics (\textit{i.e.}, the system we represent with the graph).
  23. In our approach, everything is stored as a graph, which purely defines the structure of the models.
  24. Semantics is not given by this graph representation: it is given by the executable models, which are themselves models in our tool, represented as graphs.
  25. Closest to our contribution is a-posteriori typing~\cite{APosterioriTyping}, where a single model element has one single (constructive) type, but possibly also a set of additional types which act as views on the model.
  26. The constructive type is the one gained through instantiation, and is not modifiable, nor user-definable.
  27. Additional types, however, are dynamically determined when used in a specific setting.
  28. Whereas in our approach we explicitly model the conformance relation and the type mapping, a-posteriori typing is more of a kind of conditional typing, related to their implementation of concepts.
  29. Elements are considered as instances of specific types only if some conditions are met, such as having a specific attribute with a value within a certain range.
  30. Its primary use is for reuse of functions, as exemplified in their application on the petri net model.
  31. In comparison, our approach offers more flexibility, as an element might be typed by multiple element (similar to a-posteriori typing), but also typed using multiple conformance relations.
  32. Since conformance relations are explicitly modelled, there are no limitations as to what the modeller can model.
  33. Similar to our work is also that of the Dynamic Multi-Layer Algebra~\cite{DMLA}, which also acknowledges the importance of bootstrapping the system and making the instantiation explicit.
  34. But whereas the instantiation is explicitly mentioned in the paper and the algebra, there is no way for users to modify or extend it at run-time.
  35. Retyping is offered by other tools, either through model transformations as in AToMPM~\cite{AToMPM} and MetaDepth~\cite{MetaDepth}, or by seperate operations as is the case in MMINT~\cite{MMINT}.
  36. Instead of retyping, our approach has multiple types simultaneously, thus avoiding frequent type conversions at the cost of managing all type relations simultaneously.
  37. Retyping is also possible, without the need for seperate operations, as the typing relation is just another model.
  38. Related to multiple types for a single element, Nivel~\cite{Nivel} allowed for multiple classification.
  39. In contrast to our approach, only a single kind of conformance relation was defined, which was directly encoded into their formalization and is thus a fundamental part of the tool.
  40. Similarly, they hardcoded concepts like subtyping, reducing flexibility further.
  41. Several hardcoded conformance relations were proposed, such as that of Nivel~\cite{Nivel} and by Guy \textit{et al.}~\cite{OnModelSubtyping}.
  42. Each of these explicitly requires some attributes to be present, such as multiplicities.
  43. In general, it is not guaranteed that the metamodel will even contain these notions, let alone that they have identical semantics.
  44. By making the semantics of these elements explicit, users are certain about what the values mean, but additionally they can also opt for simpler type/instance relations, which don't take into account some of these restrictions.
  45. Salay and Chechik~\cite{AgilityInMDE} raised the need for modification (relaxation) of the conformance relation to allow for agility.
  46. In some way, de Lara \textit{et al.}~\cite{FromTypesToTypeRequirements} propose a different kind of conformance check, though still hardcoded: using requirements for elements instead of types provided during instantiation.
  47. We believe that in our framework, this would just be a specific kind of conformance check, which can again be explicitly modelled and included for users.