一种基于依赖性分析的类内聚度度量方法  被引量:16

An Approach to Measurement of Class Cohesion Based on Dependence Analysis

在线阅读下载全文

作  者:陈振强[1] 徐宝文[1] 

机构地区:[1]东南大学计算机科学与工程系

出  处:《软件学报》2003年第11期1849-1856,共8页Journal of Software

基  金:国家自然科学基金;国家重点基础研究发展规划(973);教育部跨世纪优秀人才培养计划;高等学校博士学科点专项科研基金;江苏省自然科学基金;江苏省科技攻关项目;武汉大学软件工程国家重点实验室开放基金;江苏省计算机信息处理技术重点实验室开放基金(苏州大

摘  要:内聚度是指模块内各成分之间的联结强度.在面向对象程序中,内聚度主要是指类内部各成分之间的联结强度.在深入剖析了类的属性与属性、方法与属性以及方法与方法之间的关系及其性质的基础上,提出了一种基于依赖性分析的内聚度度量方法,并证明了它满足优良的内聚度度量方法应该具有的性质,从而克服了已有方法只是分析了某个方面的不足,为综合评价类内聚度提供了指南.Cohesion represents the tight degree of the components of a software module. In an OO environment, the cohesion is mainly about the tight degree among the attributes and methods in classes. So it is urgent to fully explore the tight degree among the attributes and methods in classes of the detailed applications in order to make up the deficiency of the existing methods. The relationships between attributes and attributes, attributes and methods, methods and methods of a class, and the properties of these relationships are discussed. According to these properties, a new approach is proposed to measure the cohesion of a class based on a dependence analysis. This method is proved to satisfy the properties that a good measurement should have. The approach overcomes the limitations of the previous class cohesion measures, which consider only one or two of the three relationships in a class. The result of the approach provides a guideline for evaluating the cohesion of a class. [( )-0.1( )]

关 键 词:软件度量 面向对象 程序分析 内聚度 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象