Font Size: a A A

Research On MDA Based MVC Modeling And Model Transformation Technology

Posted on:2011-09-04Degree:MasterType:Thesis
Country:ChinaCandidate:J WangFull Text:PDF
GTID:2178360308958317Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Model Driven Architecture (MDA), which regards model representation and model transformation as its core technology, is a model-centric software development methodology. The key-points of realizing MDA is building the platform-independent model (PIM) and platform-specific model (PSM), and defining the transformation rules of PIM to PSM and PSM to code. There is no unified method to build models and to define model transformation rules at present.Model/View/Controller (MVC) is a software architecture pattern. It lacks of approach to define MVC models in existing MDA modeling theory. AndroMDA tool can generate simple Struts applications. However, AndroMDA is missing the PSM layer, and also lack of MVC modeling in PIM design. It generates Struts codes through a specific transformation rule from PIM. Incomplete PIM makes it difficult to design transformation rules. To resolve these problems, the main task of this article is building MVC model in the platform-independent perspective, generating specific technology-related model by model transformation technology, and generating final codes using template-based technology.This thesis regards MVC pattern modeling and code generation method in MDA as the main topic. And it has researched and analyzed the basic principle, architecture, core techniques, model representation and model transform theory of MDA. After summing up the various models of MDA, this thesis uses the extended UML as PIM and PSM modeling language. Then it studied the representation method of MVC model in PIM and PSM, and designed UML Profile for building MVC model in PIM-layer and the UML Profile for modeling Struts in PSM-layer. The effectivity of the designed MVC pattern modeling method is illustrated by an example.Query/Views/Transmissions (QVT) is a pending standard the Object Management Group proposed, which is used to solve the transformation problem between MOF-based models providing model query, view, and transformations definitions. Based on the study of Operational QVT model transformation method, the thesis designed the transformation rules from MVC model of the PIM layer to Struts PSM, and described the transformation rule using Operational Mapping language. The transformation rules are validated by the transformation tools after converting an instance PIM to PSM. The template-based code generation approach is choosen to use after studying the code generation methods from PSM model of MDA. Templates using to generate Java code and configuration files from Struts PSM model are designed and defined by Acceleo standard template language. Finally, source code is generated by the transformation rules and code templates.Adding MVC architectural pattern model into Platform-independent model is important to enhance the accuracy and completeness of PIM. It can also enhance the reusability of the model by transforming PIM to different PSMs according to different requirements. And it is prepared for building automated modeling and model transformation tools.
Keywords/Search Tags:Model Driven Architecture, MVC, Model Transformation, QVT
PDF Full Text Request
Related items