Almutairi, Sultan, Zolotas, Athanasios and Kolovos, Dimitris orcid.org/0000-0002-1724-6563 (2022) Towards round-Trip engineering of code fragments embedded in models. In: Proceedings - ACM/IEEE 25th International Conference on Model Driven Engineering Languages and Systems, MODELS 2022:Companion Proceedings. 25th ACM/IEEE International Conference on Model Driven Engineering Languages and Systems, MODELS 2022, 23-28 Oct 2022 Proceedings - ACM/IEEE 25th International Conference on Model Driven Engineering Languages and Systems, MODELS 2022: Companion Proceedings . Association for Computing Machinery, Inc , CAN , pp. 529-538.
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.
Metadata
Item Type: | Proceedings Paper |
---|---|
Authors/Creators: |
|
Copyright, Publisher and Additional Information: | Funding Information: The work in this paper has been partially funded through the HI-CLASS InnovateUK project (contract no. 113213). Publisher Copyright: © 2022 Association for Computing Machinery. This is an author-produced version of the published paper. Uploaded in accordance with the publisher’s self-archiving policy. Further copying may not be permitted; contact the publisher for details. |
Keywords: | model-driven engineering,model-To-Text transformation,round-Trip engineering |
Dates: |
|
Institution: | The University of York |
Academic Units: | The University of York > Faculty of Sciences (York) > Computer Science (York) |
Depositing User: | Pure (York) |
Date Deposited: | 25 Apr 2024 07:50 |
Last Modified: | 05 Nov 2024 01:31 |
Published Version: | https://doi.org/10.1145/3550356.3561578 |
Status: | Published |
Publisher: | Association for Computing Machinery, Inc |
Series Name: | Proceedings - ACM/IEEE 25th International Conference on Model Driven Engineering Languages and Systems, MODELS 2022: Companion Proceedings |
Identification Number: | 10.1145/3550356.3561578 |
Related URLs: | |
Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:211860 |
Download
Filename: Towards_round-trip_engineering_of_code_fragments_embedded_in_models.pdf
Description: Towards round-trip engineering of code fragments embedded in models