Maintaining invariant traceability through bidirectional transformations

  • Authors:
  • Yijun Yu;Yu Lin;Zhenjiang Hu;Soichiro Hidaka;Hiroyuki Kato;Lionel Montrieux

  • Affiliations:
  • Open University, UK;University of Illinois at Urbana-Champaign, USA;National Institute of Informatics, Japan;National Institute of Informatics, Japan;National Institute of Informatics, Japan;Open University, UK

  • Venue:
  • Proceedings of the 34th International Conference on Software Engineering
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Following the ``convention over configuration" paradigm, model-driven development (MDD) generates code to implement the ``default'' behaviour that has been specified by a template separate from the input model, reducing the decision effort of developers. For flexibility, users of MDD are allowed to customise the model and the generated code in parallel. A synchronisation of changed model or code is maintained by reflecting them on the other end of the code generation, as long as the traceability is unchanged. However, such invariant traceability between corresponding model and code elements can be violated either when (a) users of MDD protect custom changes from the generated code, or when (b) developers of MDD change the template for generating the default behaviour. A mismatch between user and template code is inevitable as they evolve for their own purposes. In this paper, we propose a two-layered invariant traceability framework that reduces the number of mismatches through bidirectional transformations. On top of existing vertical (modelcode) synchronisations between a model and the template code, a horizontal (codecode) synchronisation between user and template code is supported, aligning the changes in both directions. Our blinkit tool is evaluated using the data set available from the CVS repositories of a MDD project: Eclipse MDT/GMF.