arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.02105cs.SE
收藏

基于三重图语法的多版本模型增量模型转换

Incremental Model Transformations with Triple Graph Grammars for Multi-version Models

Matthias Barkowsky, Holger Giese

AI总结:

本文提出一种基于三重图语法和多版本模型的技术,用于联合转换源模型多版本到目标模型,支持批量转换与增量同步,并通过实证评估证明其在内存和执行时间上的优势。

摘要:

与传统软件项目类似,模型驱动软件工程中的项目需要对开发制品的多个版本进行充分管理,尤其要允许在临时不一致的状态下继续工作。在先前的工作中,已经针对模型驱动软件工程引入了多版本模型,这种模型能够一次性检查多个模型版本的良构性并发现合并冲突。然而,对于多版本模型而言,仍然需要处理不同制品(即不同模型)之间通过自动模型转换相互关联的情况。本文提出了一种技术,用于联合处理源模型多个版本到相应目标模型版本的转换,从而能够使用更紧凑的表示形式,这可能有助于改善转换操作以及后续分析操作的执行时间。我们的方法基于众所周知的三重图语法形式体系,以及前述被称为多版本模型的模型版本历史编码方式。除了对整个模型版本历史进行批量转换之外,该技术还涵盖了在多版本模型框架内对变更进行增量同步的能力。我们针对三重图语法的标准语义证明了所提方法的正确性,并进行了实证评估,以考察该技术在执行时间和内存消耗方面的性能。结果表明,所提出的技术在批量转换大规模版本历史时能够降低内存消耗,并可能改善执行时间,但在不利情况下也可能带来额外的计算开销。

英文摘要:

Like conventional software projects, projects in model-driven software engineering require adequate management of multiple versions of development artifacts, importantly allowing living with temporary inconsistencies. In previous work, multi-version models for model-driven software engineering have been introduced, which allow checking well-formedness and finding merge conflicts for multiple versions of a model at once. However, also for multi-version models, situations where different artifacts, that is, different models, are linked via automatic model transformations have to be handled. In this paper, we propose a technique for jointly handling the transformation of multiple versions of a source model into corresponding versions of a target model, which enables the use of a more compact representation that may afford improved execution time of both the transformation and further analysis operations. Our approach is based on the well-known formalism of triple graph grammars and the aforementioned encoding of model version histories called multi-version models. In addition to batch transformation of an entire model version history, the technique also covers incremental synchronization of changes in the framework of multi-version models. We show the correctness of our approach with respect to the standard semantics of triple graph grammars and conduct an empirical evaluation to investigate the performance of our technique regarding execution time and memory consumption. Our results indicate that the proposed technique affords lower memory consumption and may improve execution time for batch transformation of large version histories, but can also come with computational overhead in unfavorable cases.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑