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

Request the full text

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

  1. Design and Implementation of a Server-side mashup Framework
    LiSaiNan ·Huaqiao University ·2013 ·Master's thesis
  2. Formal Research of UML Behavior Diagram Based on Description Logic
    RongXianQiu ·Lanzhou University of Technology ·2012 ·Master's thesis
  3. The Key Technology Research of FPGA Graphic Design in USDR Platform
  4. Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
    SongJianSheng ·Jiangnan University ·2012 ·Master's thesis
  5. The Design and Implementation of Code Generation Module and Version Control Module of PD Portal
    ZhangYiDan ·Nanjing University ·2012 ·Master's thesis
  6. Research and Implementation of Structure Analysis and Identification for Program Flowchart
  7. Based on the.Net Platform and Workflow Technology of eHR Management System Research and Implementation
    PengZuo ·Hunan University ·2011 ·Master's thesis
  8. Research and Application of Code Generatiion Based on Model Driven Architecture
  9. An Automatic Test Cases Generation Method Based on UML Activity Diagrams
  10. Research on automatic generation of DSP code based on the RTW
  11. Concurrent AT Command Control System with Priority
    LiuGang ·Shandong University ·2013 ·Master's thesis
  12. Study on the Rapid Prototyping for Four-cylinder Gasoline Electronic Control System with Model-Based
    YeXian ·West China University ·2012 ·Master's thesis
  13. Personnel Detection and Distinguish Technology of Rail Traffic Entry Gate
    WangJingXin ·Chongqing University ·2012 ·Master's thesis
  14. Research on Rapid Prototyping Simulation for Small UAV
  15. Study on Formal Description of Software Architecture
    ZhuXueYang ·Institute of Software ·2005 ·Doctoral dissertation
  16. The Study of Dynamic Heterogeneous Virtual Disks Array and Its Pivotal Technologies
  17. Research on Open Architecture of Automotive Electronic Control System Based on Quantum Framework and Its Application
    LiXiaoJun ·Shandong University ·2008 ·Doctoral dissertation
  18. Research on Testing Theories and Technologies of Concurrent Programs
    LuChao ·Huazhong University of Science and Technology ·2007 ·Doctoral dissertation
  19. Parallel Compilation and Optimization for Multi-core Processors
  20. Design and Realize the Model of Transaction Scheduling in Real-time Database System