Derived Features for EMF by Integrating Advanced Model Queries
When designing complex domain-specific languages, metamodels are frequently enriched with derived features that correspond to attribute values or references (edges) representing computed information in the model. In the popular Eclipse Modeling Framework, these are typically implemented as imperative Java code.
In the paper, we propose to integrate the EMF-IncQuery model query framework to the Ecore metamodeling infrastructure in order to facilitate the efficient and automated (re-)computation of derived attributes and references over EMF models. Such an integration allows to define derived features using an expressive graph-based model query language , and offers high performance and scalability thanks to the incremental evaluation technique of EMF-IncQuery . In addition, our approach offers to automate two typical associated challenges of EMF tools: (1) values of derived features are immediately recalculated upon model changes and (2) notifications are sent automatically to other EMF model elements to report changes in derived features.
KeywordsModel Transformation Query Language Query Result Graph Pattern Model Query
Unable to display preview. Download preview PDF.
- 5.The Eclipse Project: EMF Model Query 2, http://wiki.eclipse.org/EMF/Query2
- 6.The Eclipse Project: EMFT Search, http://www.eclipse.org/modeling/emft/?project=search
- 8.Giese, H., Hildebrandt, S., Seibel, A.: Improved flexibility and scalability by interpreting story diagrams. In: Proceedings of GT-VMT 2009, vol. 18. ECEASST (2009)Google Scholar
- 9.The Object Management Group: Object Constraint Language, v2.3.1. (January 2012), http://www.omg.org/spec/OCL/2.3.1/
- 10.Uhl, A., Goldschmidt, T., Holzleitner, M.: Using an OCL impact analysis algorithm for view-based textual modelling. ECEASST 44 (2011)Google Scholar
- 15.Nickel, U., Niere, J., Zündorf, A.: The FUJABA environment. In: Proc. ICSE 2000, pp. 742–745 (2000)Google Scholar
- 17.Scheidgen, M.: On implementing MOF 2.0 new features for modelling language abstractions (2005)Google Scholar
- 19.Jeusfeld, M.A., Jarke, M., Mylopoulos, J.: Metamodeling for Method Engineering. The MIT Press (2009)Google Scholar