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 条
  • [1] FAMILIAR: A domain-specific language for large scale management of feature models
    Acher, Mathieu
    Collet, Philippe
    Lahire, Philippe
    France, Robert B.
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2013, 78 (06) : 657 - 681
  • [2] Alferez Mauricio, 2011, Top Productivity through Software Reuse. Proceedings of the 12th International Conference on Software Reuse, ICSR 2011, P20, DOI 10.1007/978-3-642-21347-2_3
  • [3] [Anonymous], 2013, Feature-Oriented Software Product Lines
  • [4] Apel S, 2013, PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), P482, DOI 10.1109/ICSE.2013.6606594
  • [5] Apel S, 2009, LECT NOTES COMPUT SC, V5563, P4, DOI 10.1007/978-3-642-02408-5_2
  • [6] Asirelli Patrizia, 2011, Proceedings of the 2011 15th International Software Product Line Conference (SPLC 2011), P130, DOI 10.1109/SPLC.2011.34
  • [7] Barriers to Systematic Model Transformation Testing
    Baudry, Benoit
    Ghosh, Sudipto
    Fleurey, Franck
    France, Robert
    Le Traon, Yves
    Mottu, Jean-Marie
    [J]. COMMUNICATIONS OF THE ACM, 2010, 53 (06) : 139 - 143
  • [8] Automated analysis of feature models 20 years later: A literature review
    Benavides, David
    Segura, Sergio
    Ruiz-Cortes, Antonio
    [J]. INFORMATION SYSTEMS, 2010, 35 (06) : 615 - 636
  • [9] Chen L., 2009, P 13 INT SOFTWARE PR, P81
  • [10] Abstract Delta Modeling
    Clarke, Dave
    Helvensteijn, Michiel
    Schaefer, Ina
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (02) : 13 - 22