Incremental evaluation of model queries over EMF models

  • Authors:
  • Gábor Bergmann;Ákos Horváth;István Ráth;Dániel Varró;András Balogh;Zoltán Balogh;András Ökrös

  • Affiliations:
  • Budapest University of Technology and Economics, Department of Measurement and Information Systems, Budapest, Hungary;Budapest University of Technology and Economics, Department of Measurement and Information Systems, Budapest, Hungary;Budapest University of Technology and Economics, Department of Measurement and Information Systems, Budapest, Hungary;Budapest University of Technology and Economics, Department of Measurement and Information Systems, Budapest, Hungary;OptxWare Research and Development LLC;OptxWare Research and Development LLC;OptxWare Research and Development LLC

  • Venue:
  • MODELS'10 Proceedings of the 13th international conference on Model driven engineering languages and systems: Part I
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Model-driven development tools built on industry standard platforms, such as the Eclipse Modeling Framework (EMF), heavily utilize model queries in model transformation, well-formedness constraint validation and domain-specific model execution. As these queries are executed rather frequently in interactive modeling applications, they have a significant impact on runtime performance and end user experience. However, due to their complexity, these queries can be time consuming to implement and optimize on a case-by-case basis. Consequently, there is a need for a model query framework that combines an easy-touse and concise declarative query formalism with high runtime performance. In this paper, we propose a declarative EMF model query framework using the graph pattern formalism as the query specification language. These graph patterns describe the arrangement and properties of model elements that correspond to, e.g. a well-formedness constraint, or an application context of a model transformation rule. For improved runtime performance, we employ incremental pattern matching techniques: matches of patterns are stored and incrementally maintained upon model manipulation. As a result, query operations can be executed instantly, independently of the complexity of the constraint and the size of the model. We demonstrate our approach in an industrial (AUTOSAR) model validation context and compare it against other solutions.