Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Software visualization method for object-oriented programming language source code

A programming language, object-oriented technology, applied in the direction of program control devices, etc., can solve the problems of lack of uniformity, unfavorable structural system, lack of conciseness and clarity, etc.

Inactive Publication Date: 2013-03-20
BEIJING INSTITUTE OF TECHNOLOGYGY
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] ①Because the class diagram is mainly used in the forward development, when it is applied in the reverse process such as software source code visualization, it is difficult to express some semantically related relationships in the class diagram correctly;
[0011] ②In some existing automated testing software or some IDE integrated development tools, the implementation from source code to class diagram is provided, but the class diagram obtained from it is often composed of multiple connected subgraphs, and the layout of the class diagram There is a lot of randomness, so the expression is not concise, clear, and not unified, which is not conducive to users' quick understanding of the structural system of the software
[0012] ③The class diagram can only represent certain specific relationships between classes in the software system, and the representation of the software system structure is also reflected through these relationships, so when representing the system structure, it is also limited to the level of classes and class relationships. The description of the role and role played by a concrete class in the system also has the same limitations.
[0013] So class diagrams are not suitable for software visualization

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
  • Software visualization method for object-oriented programming language source code
  • Software visualization method for object-oriented programming language source code
  • Software visualization method for object-oriented programming language source code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0081] The source code looks like this:

[0082] Source code file 1: carlib.java:

[0083]

[0084]

[0085] Source code file 2: Linklist.java:

[0086]

[0087]

[0088]

[0089] Source code file 3: Link list.java

[0090]

[0091] For the above-mentioned 3 Java source code files, use the method proposed by the present invention to visualize, and its flow chart is as follows figure 1 As shown, the specific operation steps are as follows:

[0092] Step 1. Extract key information from the source code.

[0093] Extract key information from the source code of source code files 1, 2, and 3. Taking the Linklist class as an example, the extracted information is as follows:

[0094] Information such as the package where the class is located, class name, parent class, inheritance method, class type, class modifier, and nested classes contained in the class are shown in Table 5.

[0095] Table 5 related information

[0096]

[0097] Information such as class ...

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 relates to a software visualization method for an object-oriented programming language source code, belonging to the technical field of software visualization. The method comprises the following steps of: (1) extracting key information from the source code; (2) acquiring data information of an original graph; (3) acquiring data information of a directed graph; (4) designing a graph layout; and (5) performing visualization mapping. With the adoption of the novel software visualization method for the object-oriented programming language source code provided by the invention, the defect of a class graph for the soft visualization is made up, and the internal structure of software and the status and the effect of types in the software can be accurately and intuitively reflected, so that a user can rapidly understand a software design level.

Description

technical field [0001] The invention relates to a software visualization method for object-oriented programming language (Object-Oriented Programming Language, OOPL) source code, belonging to the technical field of software visualization. Background technique [0002] Based on the program source code to obtain the high-level design abstraction method of the software, the most primitive and direct solution is that the programmer reads the source code, after a series of mental analysis, and finally uses some highly abstract graphics or text expressions to explain the internals of a software structure and implementation logic. [0003] Software visualization usually uses software automation to summarize various attributes (including keywords, inter-class relationships, etc.) The internal structure of the system, the evolution information of the software, and the behavioral characteristics of the software realize the automatic analysis and abstraction of the source code, and ge...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 胡昌振王国强王崑声王志刚胡鹤洪孝金
Owner BEIJING INSTITUTE OF TECHNOLOGYGY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products