Reverse engineering based model base structuring method

A technology of reverse engineering and construction methods, applied in the direction of program control devices, special data processing applications, instruments, etc., can solve problems such as lack

Inactive Publication Date: 2015-03-04
NANJING UNIV
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Unfortunately, although there is a large amount of source code on the World Wide Web, there is a lack of an effective and usable model library.

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
  • Reverse engineering based model base structuring method
  • Reverse engineering based model base structuring method
  • Reverse engineering based model base structuring method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be described in further detail below.

[0027] A kind of model library construction method based on reverse engineering of the present invention mainly comprises following five steps:

[0028] S1: Grab the source code of open source projects from the Internet through a web crawler;

[0029] S2: Clean up the captured source code to obtain a valid source code file;

[0030] S3: Analyzing the reverse engineering of effective source code files to construct an initial UML class diagram;

[0031] S4: refine the initial UML class diagram to obtain a simplified UML class diagram;

[0032] S5: saving the simplified UML class diagram into a diagram database.

[0033] This embodiment is specifically realized by writing a program of java code. First, in step S1, the source code of the open source project is grabbed from the World Wide Web by writing a web crawler program, which mainly includes two steps:

[0034] S11: Use jsoup to parse the webpage c...

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 reverse engineering based model base structuring method. The reverse engineering based model base structuring method includes steps of capturing source codes of an open source project from Internet by web crawlers; clearing the captured source codes to acquire effective source code files; subjecting the effective source codes to reverse engineering analysis to structure an initial UML (unified modeling language) class diagram; simplifying the initial UML class diagram to obtain a simple UML class diagram; storing the simple UML class diagram into a diagram database. A great many source codes on Internet can be converted into UML class diagram models, these models are stored into a non-relation database after simplified, and a model base is structured. By simplifying the reverse engineering, the class diagram models generated contain more code structure information, and the reverse engineering based model base structuring method is more accurate than other methods.

Description

technical field [0001] The invention relates to reverse engineering and model persistence engineering in the field of computer programming. Background technique [0002] With the advancement of the open source wave, a large number of open source code websites have emerged on the World Wide Web, such as Google Code, Sourceforge, Github, etc., and we can easily obtain a large number of open source source codes on these websites. The massive amount of open source code also brings a series of problems such as code understanding difficulty, code query difficulty, and code heterogeneity. These problems directly affect our reuse efficiency of open source code. [0003] A software model is a structured view of a software system. For human perception, graphics are undoubtedly easier to understand than text, and the heterogeneity of the underlying code can be eliminated through the model, thus solving the problem of code understanding. At the same time, there is a one-to-one corresp...

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/44G06F17/30
Inventor 张天许涵斌李宣东
Owner NANJING 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
Try Eureka
PatSnap group products