A Method for Measuring the Importance of Software Classes Based on Weighted q2 Index

A measurement method and technology of importance, applied in software maintenance/management, program loading/starting, program control devices, etc., can solve the work of lack of software measurement, lack of measurement of the importance of code elements, lack of measurement of the importance of software elements and other problems to achieve the effect of improving the efficiency of code maintenance

Active Publication Date: 2018-07-31
ZHEJIANG GONGSHANG UNIVERSITY
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) Existing work mainly focuses on measuring the complexity of the code elements themselves, and lacks the measurement of the importance of code elements
[0005] (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 the importance of measuring software elements from an overall perspective sex work

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 Method for Measuring the Importance of Software Classes Based on Weighted q2 Index
  • A Method for Measuring the Importance of Software Classes Based on Weighted q2 Index
  • A Method for Measuring the Importance of Software Classes Based on Weighted q2 Index

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The technical scheme of the present invention will be further described below by embodiments and in conjunction with the accompanying drawings:

[0045] A software class importance measurement method based on the weighted q2 index proposed by the present invention, the specific steps are as follows:

[0046] (1) The feature granularity of the software source code written in Java is abstracted into a feature dependency network FDN=(N f ,D f ). figure 1 Shown is a Java source code snippet. according to figure 1 Given a snippet of Java source code, the corresponding FDN can be built (e.g. figure 2 The text on the edge of the node is the name of the corresponding feature of the node (the name consists of the package name, the class name, and the feature name is connected by "."). Among them, N f ={p1.classX.a(), p1.classX.v, p1.classX.c(), p1.classX.b(), p2.classY.d(), p2.classZ.e(), p2. classZ.f()} is a collection of feature nodes; D f ={(p1.classX.b(),p1.classX.a()...

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 measuring the importance of a software class based on a weighted q2 index. The method comprises the following steps: abstracting a software source code written by Java language into a feature dependence network with the feature granularity; constructing a class dependence network based on the feature dependence network; calculating the weighted h index of a node based on the class dependence network; calculating the weighted m index of the node based on the class dependence network; and calculating the weighted q2 index of the node based on the weighted h index and the weighted m index of the node, and taking the weighted q2 index of the node as the measurement index of the class importance. According to the invention, the disadvantage that measurement of the class importance is little related in the prior art can be made up; and, to understand software, increasing of the code maintenance efficiency has an important significance.

Description

technical field [0001] The invention relates to a software class importance measurement method, in particular to a software class importance measurement method based on a weighted q2 index. Background technique [0002] Computer software has permeated every aspect of our work and daily life, changing and will continue to change our lives. With the development of software technology and the popularization of the Internet, people's reliance on software is increasing day by day, and the requirements for software quality are getting higher and higher. This leads to the surge of the system scale and the increasingly complex software application environment, which increases the risk of software development and makes it difficult to effectively control the software quality. [0003] Simultaneous evolution is one of the essential properties of software. Like living things, software systems must evolve continuously during their life cycle, otherwise they may be eliminated in advanc...

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/445
CPCG06F8/70
Inventor 潘伟丰宋贝贝姜波谢波王家乐
Owner ZHEJIANG GONGSHANG UNIVERSITY
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