Research and Implementation of Automated Code Generation in Hierarchical Modeling
- Author
- XuLin
- Advisor
- LiuXiYang
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.5 Software Engineering
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 40
- Citations
- 0
Abstract
Along with the gradual maturity of model driven development (MDD) and theappearance of automated code generation, developing methods based on MDD havebeen widely used in software area. Using MDD, developers devote more time to focuson the system logic designing, that is to say, they can develop in more abstract levelswithout considering the design of the code architecture. Therefore, the developmentefficiency has been improved.For the characteristic of high-level behaviors modeling in aerospace system, thispaper proposes a hierarchical modeling method based on the combination of Statechartand flowchart, and make an analysis of automated code generation from Statechart tocode, flowchart to code, and hierarchical model charts to code. For Statechart codegeneration, this paper studies the most famous implementation technique, nested“switch” statements. For flowchart code generation, on the basis of flowchart structurerecognize algorithm, the flowchart is processed as follows. If the flowchart isunstructured, then it is converted into structured. And the loop structure is convertedinto linear structure as the scope of the loop and branched structures are determined.According to the process mentioned above, the flowchart is converted from the chartstructure to the linear structure corresponding to the code, thus the automated codegeneration from flowchart to C code is implemented. As to the hierarchical modeling,this paper designs the top-down nested relationship among hierarchical models. Inaddition, a data dictionary is added to control the use of global variables, and theflowchart is extended to bring more detailed code semantics. Based on which, theautomated code generation system of hierarchical models is designed and implemented.The experiment shows that the automated code generation system proposed in thispaper is simple and easy operation, and high efficient.
Table of contents
Summary 3-4
Abstract 4-7
first chapter 7-13
1.1 Background 7-8
1.2 research status 8-11
1.2.1 development of embedded software technology 8-9
1.2.2 modeling and automated code generation technology development and application 9-11
1.3 research questions 11
1.4 the main organizational structure 11
1.5 papers 11-13
Chapter II model-driven development and automatic code generation technology research 13-27
2.1 model-driven development 13-16
2.1.1 Introduction to model-driven development 13-15
2.1.2 MDA Profile 15-16
2.2 models and automatic code generation technology research 16-26
2.2.1 code automatically generated Profile 16-17
2.2.2 hierarchical modeling technologies 17-19
2.2.3 state diagram modeling and code generation technologies 19-23
2.2.4 flowchart modeling and code generation technologies 23-26
2.3 Summary 26-27
Chapter III state diagram construction mode and code generation design and implementation 27-35
3.1 state diagram model semantics and storage 27-29
3.1.1 state diagram model semantics 27-28
3.1.2 state diagram model storage 28-29
3.2 state diagram code generation design and implementation 29-33
3.3 Summary 33 - Chapter 35
flowchart modeling and code generation design and implementation 35-57
4.1 flowchart model semantics and storage 35-38
4.1.1 flowchart model semantics 35-36
4.1.2 flowchart model storage 36-38
4.2 flowchart code generation algorithm framework design 38-41 <br / > 4.2.1 flowchart Data structure design 38-39
4.2.2 flowchart code generation algorithm framework 39-41
4.3 flowchart code generation algorithm design and implementation 41-55
4.3.1 flowchart to determine the legality 41-42
4.3.2 flowchart semistructured to structured transformation 42-44
4.3.3 flowchart loop structure linearization 44-48
4.3.4 branch flow chart to determine the domain of 48-53
4.3.5 flowchart code generation 53-55
4.4 Summary 55-57
Chapter hierarchical modeling and code generation design and implementation 57-69 <br / > 5.1 hierarchical model design 57-59
5.2 hierarchical storage structure design model 59-62
5.3 hierarchical model code generation design and implementation 62 - 64
5.4 hierarchical code generation system experiments 64-68
5.5 Summary 68-69
Chapter VI Conclusion 69-71 <br / > 6.1 This work summarizes 69
6.2 further research directions 69-71
Thanks 71-73
References 73 - 75
during the reading of the findings of 75-76
Related dissertations
- Research and Implementation of Navigation and Code Generation in Hierarchical Modeling
- Research on Model Based System Engineering Methodology for Control Systems
- Design and Implementation of a Component-based Configuration Modeling Tool
- Research and Implementation of Compont Management in Hierarchical Modeling
- Research on Model Driven Architecture Based on Highly-reused Web Information System
- Aspect Oriented Based Product Derivation Method in Software Product Line and Its Supporting Tool
- Design and Implementation of Model Simulation in Hierarchical Modeling System
- Research on Theory,Method and Application of Multi-Hierarchy Collaborative Modeling for Component-Based Digital Mock-up
- Study on Theory and Method of Agile Supply Chain Synergic Production Management
- Virtual Prototype Technology and Its Application in Space Remote Sensor Development
- Hierarchical Formal Modeling and Verification Train Control System
- Research on Model Driven Application Integration Approaches for Manufacturing Enterprises
- Side openings crimping machine structure design optimization and serialization
- Research on Modeling and Simulation of Petrochemical Multi-level Material Flow Model Based on DEVS
- Modeling and Verification of Queueing System with Petri Nets
- Reconfigurable virtual machining environment interactive modeling system
- Research of Dependability Evaluation of Cluster System
- Design and Development of Web UI Customizable General Platform Based on J2EE
- The development of the application of model-driven development method 1553B bus emulation terminal
- The Method Research of Modeling and Analysis-Evaluation for the Petri Nets-Based Workflow Model