Method for establishing different version program class set mapping relationships

A technology of mapping and collection, applied in version control, software maintenance/management, etc., can solve problems such as inconsistency, complex program structure, and difficulty

Active Publication Date: 2020-03-24
FUZHOU UNIV
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The evolution analysis of software can help to fully understand the differences of different versions of the program, and the comprehensive understanding of each version of the program and the comprehensive understanding of the differences of different versions of the program are the basis of program maintenance. , the amount of code is huge, it is difficult and irrational to analyze the program evolution information by reading the source code
[0003] Although the object-oriented technology has significantly improved the maintainability of the program, due to the current evolution analysis of different versions of the program needs to rely on the development documents or change records of different versions of the program, and the lack of standardized documents, incompleteness and Inconsistency is a common problem

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 establishing different version program class set mapping relationships
  • Method for establishing different version program class set mapping relationships
  • Method for establishing different version program class set mapping relationships

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0210] In order to make the features and advantages of this patent more obvious and easy to understand, the following special examples are described in detail as follows:

[0211] First, the implementation of this embodiment is based on the definition of judging factors, including: defining judging factors for class similarity and method similarity, such as class name, attribute number, attribute information, method number, method information, call relationship, method The similarity between the classes, the number of times the method is called, the number of times the method is called, and so on.

[0212] Such as figure 1 As shown, the solution flow provided by this embodiment includes the following steps:

[0213] Step S1: Obtain the source code of two different versions of the same Java program; for example, given a typical object-oriented Java program, the source code of the Java program can be analyzed by the code analysis tool soot;

[0214] Step S2: Analyze...

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 provides a method for establishing different version program class set mapping relationships. The method comprises the following steps: firstly, determining class similarity and evaluation factors of method similarity; secondly, establishing a class diagram from source code reverse engineering; and finally, establishing one-to-one, one-to-many and many-to-one mapping relationships ofclasses in class sets of programs among different versions and one-to-one mapping of methods in the classes through a series of algorithm analysis (including calculation of preliminary class similarity, method similarity and iterative determination of methods and final similarity of the classes). The problem that it is difficult to search for the mapping relation between system class sets of different versions through manual source code reading and other modes can be solved. The system structure of the system is visually reflected, and the readability and maintainability of codes are improved, and the difficulty of understanding systems of different versions by software developers and maintainers is reduced, and a method for observing different systems at a higher level is provided.

Description

technical field [0001] The invention belongs to the technical field of computer software, and in particular relates to a method for establishing a class collection mapping relationship of different versions of programs, especially Java programs. Background technique [0002] Object-oriented technology has become a research hotspot since it was proposed. So far, object-oriented has gradually penetrated into all levels and aspects of software development, and object-oriented methods including object-oriented analysis, design and programming have emerged. Software evolution refers to the process of software undergoing gradual changes and reaching the desired shape. Software evolution plays an important role in prolonging the life of software. The efficiency of software programs will be improved and defects will be corrected after evolution. Software maintenance and evolution are inevitable, but sometimes project personnel do not only want to obtain the evolved program, but mo...

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): G06F8/71
CPCG06F8/71
Inventor 陈星陈晓娜胡传淑敏郭莹楠陈艳
Owner FUZHOU 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