Generating counterexamples of model-based software product lines

被引:3
作者
Ferreira Filho, Joao Bosco [1 ,2 ]
Barais, Olivier [1 ,2 ]
Acher, Mathieu [1 ,2 ]
Le Noir, Jerome [5 ]
Legay, Axel [1 ,2 ]
Baudry, Benoit [3 ,4 ]
机构
[1] Univ Rennes 1, INRIA, Rennes, France
[2] Univ Rennes 1, IRISA, Rennes, France
[3] INRIA, Rennes, France
[4] Simula Res Lab, Lysaker, Norway
[5] Thales Res & Technol, Palaiseau, France
关键词
Software product lines; Model-based engineering; Counterexamples;
D O I
10.1007/s10009-014-0341-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In a model-based software product line (MSPL), the variability of the domain is characterized in a variability model and the core artifacts are base models conforming to a modeling language (also called metamodel). A realization model connects the features of the variability model to the base model elements, triggering operations over these elements based on a configuration. The design space of an MSPL is extremely complex to manage for the engineer, since the number of variants may be exponential and the derived product models have to be conforming to numerous well-formedness and business rules. In this paper, the objective is to provide a way to generate MSPLs, called counterexamples (also called antipatterns), that can produce invalid product models despite a valid configuration in the variability model. We describe the foundations and motivate the usefulness of counterexamples (e.g., inference of guidelines or domain-specific rules to avoid earlier the specification of incorrect mappings; testing oracles for increasing the robustness of derivation engines given a modeling language). We provide a generic process, based on the common variability language (CVL) to randomly search the space of MSPLs for a specific modeling language. We develop LineGen a tool on top of CVL and modeling technologies to support the methodology and the process. LineGen targets different scenarios and is flexible to work either with just a domain metamodel as input or also with pre-defined variability models and base models. We validate the effectiveness of this process for three formalisms at different scales (up to 247 metaclasses and 684 rules). We also apply the approach in the context of a real industrial scenario involving a large-scale metamodel.
引用
收藏
页码:585 / 600
页数:16
相关论文
共 44 条
  • [41] Product line implementation using aspect-oriented and model-driven software development
    Voelter, Markus
    Groher, Iris
    [J]. SPLC 2007: 11TH INTERNATIONAL SOFTWARE PRODUCT LINE CONFERENCE, PROCEEDINGS, 2007, : 233 - +
  • [42] Voirin J. L., 2008, 18 INT S INCOSE INT
  • [43] Zhang X., 2012, LECT NOTES COMPUTER, V7744, P179
  • [44] Ziadi Tewfik., 2006, SOFTWARE PRODUCT LIN, P557, DOI [10.1007/978-3-540-33253-4_15, DOI 10.1007/978-3-540-33253-4_15]