Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for generating C++code based on combination of class diagram and activity diagram

A kind of activity diagram, combined technology, applied in the direction of program control design, instrument, electrical and digital data processing, etc., can solve the problem of low software development efficiency, and achieve the effect of high operation efficiency

Inactive Publication Date: 2013-06-26
XIDIAN UNIV
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0021] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art, and combine the advantages of the prior art to provide an effective automatic code generation technology to solve the problem of low software development efficiency at the present stage

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for generating C++code based on combination of class diagram and activity diagram
  • Method for generating C++code based on combination of class diagram and activity diagram

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described below in conjunction with the accompanying drawings.

[0038] Such as figure 1 As shown, the present invention is a method for generating C++ code based on a class diagram and an activity diagram, including a template engine for outputting automatically generated code, and the method comprises the following steps:

[0039] (1) Convert the use case diagram into a class diagram and an activity diagram. The use case diagram describes a group of participants, use cases and the link relationship between the former two. According to the description of the use case in the use case diagram, the previous Preconditions, postconditions, control flow and other information to generate the class diagram and the activity diagram, wherein one use case diagram can generate multiple class diagrams and activity diagrams, and the class diagram and the activity diagram are one The corresponding class diagram is a description of the static inf...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for generating a C++code based on combination of a class diagram and an activity diagram. The generation method comprises the following steps of: converting a use case diagram into the class diagram and the activity diagram, wherein each use case is taken as the basis, and generating the class diagram and the activity diagram according to the information in the use case diagram, i.e. the use case description, the precondition, the post condition, the control flow and the like; building a mapping rule of the class diagram and the activity diagram to the C++code, wherein in order to improve the practical applicability and the effectiveness of the code, the class diagram and the activity diagram need to be combined with each other to generate the code; and after a template-based technology is taken as a frame, enabling input information of a template engine to be selected from the class diagram and the activity diagram based on a model technology, and generating the code by a template code generating technology based on the class diagram and the activity diagram.

Description

technical field [0001] The invention relates to the field of automatic generation of software codes, in particular to a method for generating C++ codes based on the combination of class diagrams and activity diagrams. Background technique [0002] Today, with the rapid advancement of electronic computer technology, the Internet is connected to computers, making today's information society enter the era of computers as the core. In the information society, information processing, acquisition, decision-making and communication all require many high-performance software architectures, thus prompting people to put forward higher and higher demands on the function, quality, variety, quantity, development and cost of computer software. needs, and people are also learning deeply about various software development methods. [0003] But unfortunately, if the software functions of the computer are to become more comprehensive and more convenient to use, the developed software will in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45
Inventor 段振华郭冬阳田聪张南王小兵罗玲
Owner XIDIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products