Model-Driven Generation of MVC2 Web Applications: From Models to Code

M'hamed Rahmouni, Samir Mbarki · 2017

Computer systems engineering is based, increasingly, on models.These models permit to describe the systems under development and their environment at different abstraction levels.These abstractions allow us to conceive applications independently of target platforms.For a long time, models have only constituted a help for human users, allow to manually develop the final code of computer applications.The Model-Driven Engineering approach (MDE) consists of programming at the level of models, represented as an instance of a meta-model, and using them for generating the end code of applications.The MDA (Model-Driven Architecture) is a typical model-driven engineering approach to application design.MDA is based on the UML standard to define models and on the meta-modeling environment (MOF) [1] for model-level programming and code generation.The code generation operation is the subject of this paper.Thus, in this work, we explain the code generation of MVC2 Web application by using the M2M transformation (ATL transformation language) then the M2T transformation.To implement this latter we use the Acceleo generator which is a generator language.In the M2T transformation, we use the PSM model of Struts2 already generated by M2M transformation as an input model of Acceleo generator.This transformation is validated by a case study.The main goal of this paper is to achieve the end-to-end code generation.

Read the paper · More papers on PaperTik