Font Size: a A A

Research And Application Of Web Code Generation Method Based On Model Driven Architecture

Posted on:2019-09-26Degree:MasterType:Thesis
Country:ChinaCandidate:Y LuoFull Text:PDF
GTID:2428330590965944Subject:Software engineering
Abstract/Summary:PDF Full Text Request
OMG's Model Driven Architecture emphasizes the importance of the model in the process of software development,It's core is to build a software system through model transformation.At present,Web applications are increasingly large and complex.The developers often spend a lot of time coding the interface of the Web presentation layer,which results in inefficient development.Based on the model representation and model transformation in MDA,the representation of domain models,object models,state models,and the transformation rules of domain model to object model,object model to state model,state model to Web presentation layer framework code are studied.Finally a Web code generation method based on model-driven architecture is proposed,which solves the above problems.Firstly,the basic ideas of model-driven software development and the Meta Object Facility and the Unified Modeling Language specifications are studied.And the model instance transformation and join the design pattern transformation based on the MDA specification are studied.And then the relationship between strategy,composition and observer design patterns with MVC and the framework and usage of Query/View/Transformation model transformation description language are studied.Secondly,the methods of inheritance and instantiation to implement object reuse in the process of designing modeling tools and modeling using modeling tools are studied,which solves the problem of how modeling tool designers and modelers select appropriate representation methods according to specific scenarios during model representation.And the methods for adding design pattern informations to class metamodel using inheritance and instantiation are studied,which solves the problem of how to add design mode information to the model transformation.Thirdly,the transformation rules from class diagram to state diagram and state diagram to JSF presentation layer framework code in the modeling and code generation phase are respectively presented and their transformation rules are described by QVT,which solves the problem of how to establish the mapping relationship between the source model and the target model in the transformation process from the object model to the state model,the state model to the presentation layer framework code.Finally,the method of Web code generation proposed in this thesis is applied to the scene of program design autonomous learning system.The PowerDesigner implementation platform is used to implement the code generation of domain model to object model,object model to state model,state model to JavaServer Faces presentation layer framework,which verifies the feasibility of the method.
Keywords/Search Tags:model driven architecture, design pattern, domain model, state model, presentation layer code generation
PDF Full Text Request
Related items