Journal of Systems Engineering and Electronics ›› 2009, Vol. 31 ›› Issue (3): 702-704.

Previous Articles     Next Articles

Approach to measurement of class cohesion based on structure entropy

YU Yong1, TANG Jia-hua1,2, LI Wen-hong1,3, LI Tong1   

  1. 1. School of Software, Yunnan Univ., Kunming 650091, China;
    2. Developing and Planning Division of Yunnan Provincial Department of Education, Kunming 650223, China;
    3. Communication Division of Yunnan Provincial Department of Public Security, Kunming 650021, China
  • Received:2007-11-06 Revised:2008-05-27 Online:2009-03-20 Published:2010-01-03

Abstract: The cohesion represents the tight degree of the components of a software module.In an object-oriented environment,the cohesion means the tight degree among the attributes and methods in a class.Based on the class dependence graph and structure entropy,a new method is proposed to measure the cohesion of a class.This method measures the cohesion between attributes and attributes,attributes and methods,methods and methods of a class.The proposed method provides a guideline for evaluating the cohesion of a class.

CLC Number: 

[an error occurred while processing this directive]