Research on Automatic Code Generation Based on Activity Diagram
- Author
- WangZhiChao
- Advisor
- WuXiangHu
- School
- Harbin Institute of Technology
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 38
- Citations
- 0
Abstract
Over the years, the model of software development and production efficiency is too low , the cycle is too long , the cost is too high , the risk is difficult to control , has restricted weapons and equipment replacement rate , reduce weaponry productivity a key factor . Automatic code generation can be based on fully inherited the previous models of software development experience , based on software reuse , to find a rapid development of high quality , high reliability , high security software products means . UML activity diagram model can describe the workflow and concurrent activities is an important tool for describing the behavior of the system , a visual blueprint of the system functions . UML activity diagram in the process of creating and merging primitives fork , join , use these primitives can be convenient, interaction between intuitive demonstrated multi-process . The activity diagram is a powerful tool for research and more complicated process . This paper studies the UML activity diagram automatic code generation technology , designed an automatic code generation system and a sub- set of primitives for activity diagrams . Mainly includes the following aspects : First, the activity diagram element semantic analysis to clarify the basic semantics of each pixel , whether for automatic code generation, code should be translated into any form . After that, choose one of the most basic , but also expressed full concurrent six primitive as the scope of the study , and thus the design of automatic code generation system . Because the support for multi-threaded programming features of the Java language , to determine the object code for the Java code . The core idea of automatic code generation system : the first defines the XML file format to describe the activity diagram ; after the technology through the DOM . Activity diagram xml format read into the program ; thus the activity diagram is split into a separate activity subgraph ; against activity subgraph split into certain processes and control the process of the implementation of the semaphore , and ultimately translate these processes and semaphores individually to generate the corresponding code . Finally , cite multiple nested and complex test cases of concurrent activity diagram to achieve automatic code generation process , and analyze the running results of the generated code and the semantics of the original activity diagram is consistent , so as to demonstrate the functionality of the system through the system .
Table of contents
Summary 4-5
Abstract 5-9
Chapter 1 Introduction 9-16
1.1 subject background and the purpose and significance of the research the 1.2 research status 9-11
11-14
1.3 main research content and organizational structure 14-16
Chapter 2 UML language and UML activity diagram 16-20
2.1 UML language 16-18
2.1.1 UML history 16
2.1.2 UML composition of 16-17
2.1.3 UML architecture 17-18
2.2 UML activity diagram the definition 2.2.1 Activity Diagram 18-19
18
2.2.2 Activity Diagram Application 18-19
2.3 Chapter Summary 19-20
Chapter 3 UML activity diagram primitive semantic analysis the 20-30 3.1 Activity Diagram node
20-25
3.1.1 Select node fusion node 21-22
3.1.2 initial node 22
3.1.3 sub-node aggregate node the 22-24 3.1.4
activity final node flow final node 24-25
3.1. 5 data storage 25
the 3.1.6 send events activities receive event activities 25
3.2 activity diagrams edge 25
to 3.3 other graphical elements 25-29
3.3.1 the activity segmentation regional 25-26
3.3.2 interruptible activity region 26
3.3.3 exception handling 26-27
3.3.4 extended area 27-28
prior to 3.3.5, and post-conditions 28
3.3.6 set parameters 28-29
3.4 Chapter Summary 29-30
Chapter 4 automatic code generation system design and realization 30-46
4.1 design goals 30-31
4.2 Activity Diagram XML description the activity diagram
4.3 31-34 the divestiture activities subgraphs 34-36
4.4 activities sub-graph code automatically generate 36-45
4.4.1 Active subgraph splitting process 37-39
4.4.2 join node corresponding generated semaphore Sem 39-41 the
a 4.4.3 of subgraph activity node corresponding generated semaphore ActivitySem 41
4.4.4 process translated into the corresponding object code 41-45
4.5 of this chapter Summary 45-46
Chapter 5 code automatically generates system test 46-54
5.1 test environment 46
5.2 multiple nested the case testing activity diagram 46-48
5.3 complex concurrent activity diagram use case testing 48-53
5.4 Chapter Summary 53-54
conclusion 54-55
Reference 55-58
Acknowledgements 58-59
Related dissertations
- Design and Implementation of a Server-side mashup Framework
- Formal Research of UML Behavior Diagram Based on Description Logic
- The Key Technology Research of FPGA Graphic Design in USDR Platform
- Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
- The Design and Implementation of Code Generation Module and Version Control Module of PD Portal
- Research and Implementation of Structure Analysis and Identification for Program Flowchart
- Based on the.Net Platform and Workflow Technology of eHR Management System Research and Implementation
- Research and Application of Code Generatiion Based on Model Driven Architecture
- An Automatic Test Cases Generation Method Based on UML Activity Diagrams
- Research on automatic generation of DSP code based on the RTW
- Concurrent AT Command Control System with Priority
- Study on the Rapid Prototyping for Four-cylinder Gasoline Electronic Control System with Model-Based
- Personnel Detection and Distinguish Technology of Rail Traffic Entry Gate
- Research on Rapid Prototyping Simulation for Small UAV
- Study on Formal Description of Software Architecture
- The Study of Dynamic Heterogeneous Virtual Disks Array and Its Pivotal Technologies
- Research on Open Architecture of Automotive Electronic Control System Based on Quantum Framework and Its Application
- Research on Testing Theories and Technologies of Concurrent Programs
- Parallel Compilation and Optimization for Multi-core Processors
- Design and Realize the Model of Transaction Scheduling in Real-time Database System