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

A Software Class Importance Measurement Method Based on Class Multilayer Networks

A multi-layer network and measurement method technology, applied in the field of software importance measurement, can solve problems such as lack of software measurement work, neglect of multi-layered software structure, lack of measurement of the importance of software elements, etc., and achieve the goal of improving code maintenance efficiency Effect

Active Publication Date: 2021-08-03
ZHEJIANG GONGSHANG UNIVERSITY
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) Existing work mainly focuses on measuring the complexity of the code elements themselves, and lacks the measurement of the importance of code elements
[0006] (2) Existing work is mainly aimed at element-level measurement, which often measures local features of software, such as measuring a method or a class. There is a lack of work on software measurement from an overall perspective, let alone measuring the importance of software elements from an overall perspective sex work
[0007] (3) The software structure model built by the existing work is not accurate enough, ignoring the multi-layered nature of the software structure, for example: there are multiple relationships between classes, and the existing work regards these multiple relationships as the same relationship, Resulting in an inaccurate description of the software structure

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
  • A Software Class Importance Measurement Method Based on Class Multilayer Networks
  • A Software Class Importance Measurement Method Based on Class Multilayer Networks
  • A Software Class Importance Measurement Method Based on Class Multilayer Networks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The technical solutions of the present invention will be further described below with reference to the accompanying drawings:

[0042] The present invention proposed a method based on the software class of the multi-layer network, the specific steps are as follows:

[0043] (1) Abstract of the source code of Java software in class granularity is class multilayer network mcn = {g IN , G IM , G PA , G GL , G ME , G LO , G RE }. Among them, G i = (V, l i , P i ) For a single layer network in a multi-layer network, a certain interaction between corresponding classes i ∈ ∈ ∈ ∈,, i,}; v is g i The node set indicates all classes in the source code; i Be i No boundary set, representation of dependencies; P i Is a matrix of | V | × | V | (| V | Returns Node), represents g i Dependent on the weight of the relationship between the class network; IN represents a class inherits another class; IM represents another abstraction class; PA represents a class method with another class object...

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 software class importance measurement method based on a class multi-layer network, which comprises the following steps: abstracting the source code of Java software into a class multi-layer network at class granularity; calculating the class nodes in each layer of the class multi-layer network The weighted h index of each class; use the statistical average method (expert scoring method) to assign weights to the weighted h index of each class in each layer, and then fuse the weighted h index of each class in each layer into a global weight by linear weighting The h index, and the global weighted h index of the node is used as a measure of the importance of the class. Existing methods basically ignore the multi-layered class granularity network. The present invention makes up for the shortcomings of the existing methods. For the first time, the class-like multi-layer network is introduced into the measure of class importance, which is helpful for understanding software structure more accurately and improving code maintenance. efficiency is of great significance.

Description

Technical field [0001] The present invention relates to a software-based importance metric, in particular, to a software class-based metric metric method based on a class multilayer network. Background technique [0002] Software has been closely linked to our lives, and goes deep into all walks of life, online shopping clothes, eat dinner, go to the door, take the subway, etc., all inseparable from software. Software is changing and will continue to change our lives. With the continuous development of software technology and the growing complexity, the complexity of software is growing, which has brought many difficulties to the development of software. At the same time, the software is also a highly collaborative development, leading to software quality. Unable to be guaranteed. [0003] Evolution is one of the essential properties of the software. It must be like the organisms of nature. In its life cycle, through constant evolution, adapt to people's new business needs and 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 Patents(China)
IPC IPC(8): G06F8/75
CPCG06F8/75
Inventor 潘伟丰王家乐蒋海波姜波柴春来明华
Owner ZHEJIANG GONGSHANG UNIVERSITY
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