Font Size: a A A

The Reserch On Automatic Generation Of Ice Application Framework

Posted on:2013-06-02Degree:MasterType:Thesis
Country:ChinaCandidate:N WangFull Text:PDF
GTID:2248330362474572Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Ice is a cross-platform and cross-language international communication engine. Itprovides an effective solution for distributed systems development, and a range ofservice components to further meet the requirements of real-world network program,which enhance the Ice application’s robustness. While developing with Ice, thedeveloper should study on Ice systematically to understand the role and use of variousfunctional modules, and be quite familiar with Ice in order to write accurate codeaccording to the selection of Ice module and service components. In fact, this part of thework is not without a pattern, because the Ice application framework and servicecomponents can be exhaustive, as long as extracting the typical software models fromthe existing system and separating program and data, the Ice application framework canbe generated automatically.Automatic code generation technology is of great significance for achieving thisgoal, it can be seen as an automatic conversion mechanism or a map from source modelto target model. By reading the project design document or model, and according to acertain of field rules, it generates specification source code of the computer canunderstand. This paper analysis and summary on the research status, devotes to models,techniques and practices around the generation of Ice application platform, the maincontributions are illustrated as fllows:Firstly, we have spent half a year to master the way of developing Ice applicationand the use of various components, as well as its inherent operating principle. This haslaid a solid foundation for the research and practice of code generation based on Ice.Secondly, from the perspective of single-server and multi-server, the Ice systemmodels with integration of some Ice service components are presented in this paper,which make it possible for the system modeling of the Ice architecture. We propose fourIce identities to clear the roles of various Ice systems during the building process, whichfurther locking the area of code generation and improving the formation rate. Moreover,a visual graphical interface is implemented for system requirement description. Itminimizes the requirements of user’s knowledge on Ice, and detects the whole systembeyond system architecture and server relationship so as to correct logic errors beforegeneration. It exactly reduces the user’s burden on learning of Ice, and guides them tocustomize the system. Thirdly, a code generator based on programming template and xml technology isbrought forward. We convert system requirements into an xml file, and design alanguage to enhance template’s flexibility and ability to express, including support forthe nested select and loop statement, provide the concept of built-in function, chain-outtemplate and data field conversion. The former reserves interface for template that canbe packed more complex template function to improve its readability and functionality.The later aims at crossing template and crossing data field when parsing a file.At last, we implement the automatic generation tool Ice-generator with integrationof graphical configuration interface, which provides all-in-one service for Iceapplication from system modeling to code generation. The function of generator isevaluated through two examples.
Keywords/Search Tags:Ice, code generation, xml, template
PDF Full Text Request
Related items