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

Method for measuring importance of software class 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 software elements, and lack of measurement of the importance of code elements and other problems to achieve the effect of improving the efficiency of code maintenance

Active Publication Date: 2016-03-09
ZHEJIANG GONGSHANG UNIVERSITY
View PDF4 Cites 10 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
  • Method for measuring importance of software class based on weighted q2 index
  • Method for measuring importance of software class based on weighted q2 index
  • Method for measuring importance of software class based on weighted q2 index

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Below by embodiment and in conjunction with accompanying drawing, technical scheme of the present invention will be further described:

[0045] A kind of weighted q2 index-based software class importance measurement method that the present invention proposes, concrete steps are as follows:

[0046] (1) Abstract the software source code written in the Java language into a feature dependency network FDN=(N f ,D f ). figure 1 Shown is a Java source code snippet. according to figure 1 Given the Java source code snippet, the corresponding FDN can be constructed (such as figure 2 As shown), the text on the side of the node is the name of the corresponding feature of the node (the name is composed of package name, class name, and feature name 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()),(p1.classX.a(),p1.classX.b...

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 penetrated into every aspect of our work and daily life, is changing and will continue to change our lives. With the development of software technology and the popularization of the Internet, people's dependence on software is increasing day by day, and the requirements for software quality are getting higher and higher. This has led to a surge in system scale and an increasingly complex software application environment, which increases the risk of software development and makes it difficult to effectively control software quality. [0003] At the same time, 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...

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
IPC IPC(8): G06F9/445
CPCG06F8/70
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