Font Size: a A A

Velocity-Based Design And Implementation Of Automatic Code Structure Generation From UML Class Diagrams

Posted on:2014-01-24Degree:MasterType:Thesis
Country:ChinaCandidate:C ZhangFull Text:PDF
GTID:2268330401452267Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Currently, in the field of software development based on object-oriented technology, UML has become the dominant standard modeling language. And it has also been confirmed by the actual software development process that compared with manual code writing, based on UML models, automatical code structure generation can effectively reduce code errors, enhance the consistency between the code and model, raise the abstraction level of software architecture, and meanwhile increase the efficiency of software developmentAiming at the problem that how to transform models described by UML class diagrams into the applicable code structure, this paper analyzes and compares some kinds of the current automatic code generation techniques.(?)first introduces several implementation ways of automatic code generation. On this basis, it designs and proposes a template-based method that automatically generates code structure from UML class diagrams, and then, based on this design, this paper presents and implements a Velocity-based code generation system. It employs business-oriented UML class diagram models described with XML as the source model, and after serials of steps such as obtaining class models, mapping from mojgel to code structure, composing template documentation, and starting template engine, completes the automatic conversion from the class diagram models to the target code. This system supports the rapid changes of system behaviors and automatic code generation after business model changing, so as to significantly reduce the application developers’ work of writing the repetitive code, improve the quality of the code structure, and thus increases the efficiency of software development.Then, through two practical examples, this paper shows its actual running processes and concrete effect of this automatic code structure generation system. According to the detailed analysis of the test results and generation speed of the code, this system achieved the desired effect and proved the feasibility of this automatic code generation system.Finally, the paper identifies what the current system need to be perfected and looks ahead into future development directions of the technique.
Keywords/Search Tags:Model, Velocity, Code structure Generation
PDF Full Text Request
Related items