A New Approach for Reflection of Code Modifications to Model in Synchronization of Architecture Design Model and Code
Van Cam Pham, Ansgar Radermacher, Sébastien Gérard
2018
Abstract
Model-Driven Engineering (MDE) increases the abstraction level, thus facilitates the design of complex systems. It is possible to create an executable system from a model enriched with detailed behavior specifications. But the graphical modeling of some system aspects is likely less efficient compared to writing code in a programming language. For method signatures, textual editing includes a few lines of text, whereas modeling requires the separate addition of methods along with their parameters. Therefore, we propose to develop systems by combining the strength of graphical modeling with programming languages by allowing a developer to make changes in either notation and synchronize the result with the other one, respectively. Synchronization between model and code is already supported by existing tools, but often restricted to structural elements that have a 1-1 mapping. The synchronization of additional modeling aspects from the code, notably component based modeling in UML and behavior in form of state-machines, is not supported by the state-of-the-art. In order to enable this synchronization, it is important to reduce the abstraction gap and assure a 1-1 mapping if possible. Our proposition is to perform the synchronization with an extended programming language that provides additional language elements for some UML elements, notably those that do not already exist in object-oriented programming languages. This extension uses built-in language facilities, in case of C++ templates and preprocessor macros, and a design pattern that adds a shadow implementation.
DownloadPaper Citation
in Harvard Style
Pham V., Radermacher A. and Gérard S. (2018). A New Approach for Reflection of Code Modifications to Model in Synchronization of Architecture Design Model and Code.In Proceedings of the 6th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD, ISBN 978-989-758-283-7, pages 496-503. DOI: 10.5220/0006610904960503
in Bibtex Style
@conference{modelsward18,
author={Van Cam Pham and Ansgar Radermacher and Sébastien Gérard},
title={A New Approach for Reflection of Code Modifications to Model in Synchronization of Architecture Design Model and Code},
booktitle={Proceedings of the 6th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,},
year={2018},
pages={496-503},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006610904960503},
isbn={978-989-758-283-7},
}
in EndNote Style
TY - CONF
JO - Proceedings of the 6th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,
TI - A New Approach for Reflection of Code Modifications to Model in Synchronization of Architecture Design Model and Code
SN - 978-989-758-283-7
AU - Pham V.
AU - Radermacher A.
AU - Gérard S.
PY - 2018
SP - 496
EP - 503
DO - 10.5220/0006610904960503