Generating Multi-Variant Java Source Code Using Generic Aspects

Sandra Greiner, Bernhard Westfechtel

2018

Abstract

Model-driven product line engineering (MDPLE) aims at increasing productivity when realizing a family of related products. Relying on model-driven software engineering (MDSE) seeks to support this effect by using models raising the level of abstraction. In MDSE model transformations are successfully applied to transform in between different (model) representations. During MDPLE models based on negative variability are augmented with variability information, we refer to as annotations. To derive products, source code is generated in model-to-text (M2T) transformations. However, applying single-variant model transformations (SVMT) to annotated models, typically loses the information in the output as SVMTs are not capable to process annotations. This work contributes a solution which reuses existing SVMTs without changing them and which transfers annotations to the output orthogonally to the reused transformation. In particular, we contribute generic aspects, supporting any kind of input metamodel, to augment the outcome of (M2T) SVMTs with annotations. Producing multi-variant source code (MVSC) is advantageous because all variants are reflected in the output. Thus, changes made inside the MVSC can be integrated easily in all concerned products upon their derivation. Otherwise, this needs to be done manually in a cumbersome process contradicting the purpose of MDPLE, to raise productivity.

Download


Paper Citation


in Harvard Style

Greiner S. and Westfechtel B. (2018). Generating Multi-Variant Java Source Code Using Generic Aspects.In Proceedings of the 6th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD, ISBN 978-989-758-283-7, pages 36-47. DOI: 10.5220/0006536700360047


in Bibtex Style

@conference{modelsward18,
author={Sandra Greiner and Bernhard Westfechtel},
title={Generating Multi-Variant Java Source Code Using Generic Aspects},
booktitle={Proceedings of the 6th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,},
year={2018},
pages={36-47},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006536700360047},
isbn={978-989-758-283-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 6th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,
TI - Generating Multi-Variant Java Source Code Using Generic Aspects
SN - 978-989-758-283-7
AU - Greiner S.
AU - Westfechtel B.
PY - 2018
SP - 36
EP - 47
DO - 10.5220/0006536700360047