An Integrated Framework for Running Extended Class Models

Johannes Schröpfer

2023

Abstract

Model-driven software engineering often deals with combinations of structural and behavioral models. In this area, class models are common artifacts expressing the structure of software systems. From class models, source code can be generated which captures the structural elements. To be runnable, the generated code usually has to be completed by implementing behavior. The Eclipse Modeling Framework (EMF) is a popular environment for model-driven software development. In this context, class models are specified as instances of the Ecore metamodel. From Ecore models, Java code is generated that lacks in the implementation of method bodies (typically, only method heads are generated). Our approach supports code generation from extended metamodels comprising structural elements, behavior, and constraints. To this end, we build a projectional editor for a textual modeling language based on SOIL, an imperative extension of OCL. The editor allows for specifying extended class models from which Java code can be generated. Our goal is to reuse the standard EMF code generator. The resulting Java source code is fully executable such that after creating the extended class model, no user interaction is required any more. In this paper, we present the idea of our approach and the current state of implementation.

Download


Paper Citation


in Harvard Style

Schröpfer J. (2023). An Integrated Framework for Running Extended Class Models. In Proceedings of the 11th International Conference on Model-Based Software and Systems Engineering - Volume 1: MODELSWARD, ISBN 978-989-758-633-0, pages 75-84. DOI: 10.5220/0011794800003402


in Bibtex Style

@conference{modelsward23,
author={Johannes Schröpfer},
title={An Integrated Framework for Running Extended Class Models},
booktitle={Proceedings of the 11th International Conference on Model-Based Software and Systems Engineering - Volume 1: MODELSWARD,},
year={2023},
pages={75-84},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0011794800003402},
isbn={978-989-758-633-0},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 11th International Conference on Model-Based Software and Systems Engineering - Volume 1: MODELSWARD,
TI - An Integrated Framework for Running Extended Class Models
SN - 978-989-758-633-0
AU - Schröpfer J.
PY - 2023
SP - 75
EP - 84
DO - 10.5220/0011794800003402