Study on Measurement of Class Coupling in Object-Oriented Software
Class coupling is dependency degree among classes, objects or components in object-oriented systems. It is important characteristic of software quality. This paper analyzes the well-known class coupling measures in detail and depth and indicates their def
- PDF / 1,694,060 Bytes
- 7 Pages / 439.37 x 666.142 pts Page_size
- 93 Downloads / 155 Views
Study on Measurement of Class Coupling in Object-Oriented Software Bo Yang and Fangting Zhao
Abstract Class coupling is dependency degree among classes, objects or components in object-oriented systems. It is important characteristic of software quality. This paper analyses the well-known class coupling measures in detail and depth, and indicates their defects. Based on anatomy of dependency among classes or objects a novel approach weighted-CBO is proposed to measure the class coupling to make up the deficiency of the existing measures. The experimental results prove the accuracy and validity of the metric method. The new method provides a guideline and new idea for evaluating class coupling. Keywords Coupling
Metric Object-oriented WCBO Method Attribute
10.1 Introduction In recent years, with the rapid expansion of software scale and complexity, the software quality has higher requirements. Software quality is often related to people’s lives and property losses or the destruction of the ecological environment. The quality of software has become a hot field of study. In the OO metrics research area, many researchers have researched different flank of internal quality properties of the software. And a software internal B. Yang (&) School of Computer Science, Sichuan University, 610065 Chengdu, China e-mail: [email protected] F. Zhao School of Computer and Information, Southwest Forestry University, 650224 Kunming, China e-mail: [email protected]
Y. Yang and M. Ma (eds.), Proceedings of the 2nd International Conference on Green Communications and Networks 2012 (GCN 2012): Volume 4, Lecture Notes in Electrical Engineering 226, DOI: 10.1007/978-3-642-35440-3_10, Ó Springer-Verlag Berlin Heidelberg 2013
71
72
B. Yang and F. Zhao
property of coupling metrics, one of the closest related software qualities of software metrics, has become a research hotspot. Coupling is the relationship of software module components or objects is one of the most important characteristics of software. Coupling degree marks the connection strength of multiple modules or objects of the software system. If coupling degree is low, the software is easy to be understand, modification and maintenance. Then, a module of the software is modified; the effect of other objects or modules is less [1]. Software coupling metrics is a combination of structured software design and object-oriented software design. Because both the structured software design and object-oriented software design, high quality software design, one of the many principles is to follow the low coupling principle. ‘‘High cohesion, low coupling’’ is one of the goals of software development. In order to objectively evaluate software module coupling degree, people put forward many measures and standards for the design staff to develop a low coupling modules or objects guide. In this paper, first section introduces the classic type of coupling method, and further points out that a class of coupled measure affected by class property, class attributes and their methods. O
Data Loading...