The Reserch on Automatic Generation of Ice Application Framework
- Author
- WangNing
- Advisor
- WangZuo
- School
- Chongqing University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 34
- Citations
- 0
Abstract
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.
Table of contents
Summary 3-5
ABSTRACT 5-10
1 Introduction 10-16
1.1 Background and Significance 10-11
1.2 domestic and foreign research status 11-13
1.3 the purpose of this paper and the main content of 13
1.4 papers structural arrangements 13-16 <br / > 2 ICE middleware and automatic code generation techniques 16-24
2.1 ICE middleware 16-20
2.1.1 Ice Profile 16
the basic steps 2.1.2 Ice written procedures 16-17
2.1.3 Ice on a pair of C / S program 17-20
2.2 automatic code generation technology 20-23
2.2.1 Overview 20-21
2.2.2 code generator types and compare 21-22
2.2.3 currently popular code generator 22-23
2.3 Summary 23-24
3 ICE application system model 24-34
3.1 Overview 24
3.2 single server platform 24-29
3.2.1 -based communication architecture 24-25
3.2.2 Ice service components using 25 - 29
3.3 multi-server platforms 29-33
3.3.1 Ice -based distributed systems 29-31
3.3.2 IceGrid server farms 31-33
3.4 summary 33-34
4 XML-based code generator template design and implementation 34-56
4.1 system design Summary 34-35
4.2 XML description file design 35-37
4.2.1 design Principles 35-36
4.2.2 server node 36
4.2.3 IceGrid node 36-37
4.2.4 IceStorm node 37
4.3 visual configuration interface design 37-42
4.3.1 single- server configuration 37-40
4.3.2 IceGrid service group configuration 40-41
4.3.3 IceStorm configuration 41
4.3.4 detection 41-42
4.4 template design 42-47
4.4.1 variable substitution 42
4.4.2 foreach statement 42-44
4.4.3 if statement 44
4.4.4 nested statements 44
4.4.5 built-in functions 44-45
4.4.6 template parameter 45
4.4.7 outer chain template 45-46
4.4.8 data field conversion 46 - 47
4.5 graphical configuration interface implementation 47-49
4.6 parsing engine to achieve 49-55
4.6.1 parse xml file 49-50
4.6.2 parsing the template file 50-55
4.6.3 system generates 55
4.7 Summary 55-56
5 system testing and analysis 56-68
5.1 Overview 56
5.2 the first test case 56-62
5.2.1 slice defined 56-57
5.2.2 system requirements described 57-60
5.2.3 a key generation 60-61
5.2.4 analysis 61-62
5.3 second test example 62-66
5.3.1 slice defined 62
5.3.2 system requirements described 62-64
5.3.3 a key generation 64-65
5.3.4 analysis 65-66
5.4 applications and templates 66
5.5 chapter Summary 66-68
6 summary and Outlook 68-70
6.1 summarizes 68
6.2 Prospects 68 -70
Thanks 70-72
References 72-76
Appendix A 76-78
Appendix B 78-84
Appendix C 84-86
Related dissertations
- Research of Code Automation Based on Relationship-Reuse
- The Design and Implementation of Electronic Medical Record System Based on XML
- Design and Implementation of A Structured Electronic Medical Record System
- Template-based automatic code generation technology
- A Mobile-platform Based Cloud Web Structure Transform
- Study on the Network Flow Statistics System Based on NETSTREAM
- Research on Resource Virtualization in Cloud Manufacturing
- Research on the Automatic Generation of Customer Reviews Report Facing Network
- Design and Implementation of the XProc Processor Based on.NET
- Design and Implementation of the XML Document Processing System Based on Xproc
- Research of Web Information Extraction Based on XML
- Research of Information Extraction from Web Documents Based on Tree Automaton
- Research and Application of Information Retrieval Based on XML Document
- Research of Keyword Query Processing on XML Data
- Research on Subtree Results Generation of XML Keyword Search
- Results Diversification for XML Keyword Search Based on Semantics
- Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
- Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
- Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
- Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System