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

• 软件、算法与仿真 • 上一篇    下一篇

一种基于结构熵的类内聚度度量方法

郁湧1, 唐家华1,2, 李文宏1,3, 李彤1   

  1. 1. 云南大学软件学院, 云南, 昆明, 650091;
    2. 云南省教育厅发展规划处, 云南, 昆明, 650223;
    3. 云南省公安厅信息通讯处, 云南, 昆明, 650021
  • 收稿日期:2007-11-06 修回日期:2008-05-27 出版日期:2009-03-20 发布日期:2010-01-03
  • 作者简介:郁湧(1980- ),男,博士研究生,主要研究方向为软件工程,系统科学.E-mail:yuy1219@163.com
  • 基金资助:
    云南省科技厅面上项目资助课题(2007F008M,08Z0011)

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

摘要: 内聚度是指模块内各成分之间的联结强度。在面向对象软件系统中,内聚度主要是指类内部的属性和方法之间的联结强度。在类依赖图的基础上,提出了一种基于结构熵类内聚度度量方法,从类的属性与属性、属性与方法和方法与方法之间依赖关系3个方面对类的内聚度进行度量。并综合以上3种内聚度给出了一个类内聚度的度量方法,为评价类的内聚度提供了指南。

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.

中图分类号: