Method for measuring class cohesion orientated to object software system

A software system and object-oriented technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as incompleteness and lack of measurement method theory

Inactive Publication Date: 2014-05-14
HOHAI UNIV
View PDF1 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Purpose of the invention: the technical problem to be solved by this invention is to overcome the theoretical deficiency and incompleteness of the measurement method existing in the prior art, and provide a kind of cohesion measurement method based on the object-oriented software system class of complex network, which is fully based on Based on graph theory, the methods and attributes in classes with complex systems are simplified into a collection of points and line segments connecting points, and the study of its cohesion has a good measurement effect

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 class cohesion orientated to object software system
  • Method for measuring class cohesion orientated to object software system
  • Method for measuring class cohesion orientated to object software system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Below in conjunction with specific embodiment, further illustrate the present invention, should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention, after having read the present invention, those skilled in the art will understand various equivalent forms of the present invention All modifications fall within the scope defined by the appended claims of the present application.

[0018] 1. Class dependency diagram of object-oriented system

[0019] In a real software system, for a class C of an object-oriented system, where A = {A 1 ,A 2 ,...,A m} is the attribute set of class C, M={M 1 , M 2 ,...,M n} is the method set of class C, then there are three kinds of dependencies between the attribute set and method set of class C: the dependency between attributes and attributes; the dependency between methods and methods; the dependency between methods and attributes dep...

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 class cohesion orientated to an object software system. According to the method, a small world model of a complicated network and the structural entropy theory are combined into the method, namely the larger the colony coefficient is, the smaller the average distance is, the more even the degree distribution is and the larger the cohesion is. Meanwhile, in terms of subgraphs which are not communicated, the product of the proportions of the numbers of nodes of the subgraphs in the overall number of nodes of the subgraphs is used for calculating the cohesion of the whole network. By means of the method, the cohesion of the network between attributes, the cohesion of the network between methods and the cohesions of the network between the methods and the attributes in the class oriented to the object software system are analyzed respectively. Finally, according to the condition of the software system, the weights of the three relations are set so as to calculate the cohesion of the class. Compared with the prior art, the method has the better measuring effect and the practical application value.

Description

technical field [0001] The invention relates to a software measurement method, in particular to a method for measuring the cohesion degree of a class by using a small-world model of a complex network and structural entropy, and belongs to the intersection field of software engineering technology and complex networks. Background technique [0002] The goal of software engineering is to develop new technologies and tools to improve software quality, make it more stable and easier to maintain. To evaluate and improve software quality during development, program developers and managers use metrics that estimate properties of different software, such as cohesion, coupling, and complexity. Cohesion refers to the connection strength between components inside a module, and is a major indicator of software quality. The higher the cohesion, the easier it is to understand, modify and maintain. However, cohesion itself is a subjective and informal concept, and it is difficult for peopl...

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): G06F9/44G06F17/30
Inventor 顾爱华周晓峰
Owner HOHAI 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