Template-based model generation
Template-based model generation
复制标题
基于模板的模型生成
DOI:
10.1007/s10270-017-0634-5
复制
发表时间:
2019
影响因子:
2
通讯作者:
Hu Chang Jun
中科院分区:
文献类型:
--
作者:
He Xiao;Zhang Tian;Pan Minxue;Ma Zhiyi;Hu Chang Jun
Given their vital roles in model-based software engineering, the performance of model-related operations (MOs, such as model transformations) must be systematically tested. However, how to produce a set of large input models that conform tostructure-related constraintspresents a major challenge to such test. This paper proposes a template-based approach to efficient model generation. Firstly, a DSL is provided to describe templates that specifyhowto generate a valid model that conforms to structure-related constraints. Secondly, afoldingsemantic is defined to convert templates into a wrapper metamodel. Thirdly, a wrapper model is generated using the existing model generators (e.g., a random model generator) according to the wrapper metamodel. Fourthly, anunfoldingsemantics is specified to translate the wrapper model into the desired test input. This paper also presents five case studies to evaluate the proposed approach, and the results demonstrate that such approach can generate large models based on structure-related constraints and facilitate the performance testing of MOs.