Towards round-trip engineering of code fragments embedded in models

Sultan Almutairi, Athanasios Zolotas, D. Kolovos
{"title":"Towards round-trip engineering of code fragments embedded in models","authors":"Sultan Almutairi, Athanasios Zolotas, D. Kolovos","doi":"10.1145/3550356.3561578","DOIUrl":null,"url":null,"abstract":"While embedding code fragments in abstract software models (e.g. Java code in UML models) is far from ideal, it remains a commonly-employed approach for achieving full model-based code generation. In this paper, we embrace this reality and present an approach for extending model-to-text (M2T) transformation languages with support for round-trip engineering of such code fragments. The approach consists of a new construct in M2T templates named sync regions, and a mechanism for synchronising hand-written code in sync regions with the source model of the M2T transformation. We have implemented the proposed approach on top of an existing M2T language (Epsilon Generation Language) and we have carried out experimental evaluation of the correctness and performance of our implementations. The obtained results suggest that the synchronisation algorithm scales linearly with the number of sync regions.","PeriodicalId":182662,"journal":{"name":"Proceedings of the 25th International Conference on Model Driven Engineering Languages and Systems: Companion Proceedings","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 25th International Conference on Model Driven Engineering Languages and Systems: Companion Proceedings","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3550356.3561578","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

While embedding code fragments in abstract software models (e.g. Java code in UML models) is far from ideal, it remains a commonly-employed approach for achieving full model-based code generation. In this paper, we embrace this reality and present an approach for extending model-to-text (M2T) transformation languages with support for round-trip engineering of such code fragments. The approach consists of a new construct in M2T templates named sync regions, and a mechanism for synchronising hand-written code in sync regions with the source model of the M2T transformation. We have implemented the proposed approach on top of an existing M2T language (Epsilon Generation Language) and we have carried out experimental evaluation of the correctness and performance of our implementations. The obtained results suggest that the synchronisation algorithm scales linearly with the number of sync regions.
实现嵌入在模型中的代码片段的往返工程
虽然在抽象软件模型中嵌入代码片段(例如UML模型中的Java代码)远非理想,但它仍然是实现完全基于模型的代码生成的常用方法。在本文中,我们接受了这一现实,并提出了一种扩展模型到文本(M2T)转换语言的方法,该方法支持这种代码片段的往返工程。该方法包括M2T模板中的一个名为同步区域的新构造,以及用于将同步区域中手写的代码与M2T转换的源模型同步的机制。我们已经在现有的M2T语言(Epsilon生成语言)之上实现了所提出的方法,并对我们实现的正确性和性能进行了实验评估。得到的结果表明,同步算法与同步区域的数量呈线性关系。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信