基于继承的内聚度度量方法研究  

An Approach to the Measurement of Class Cohesion Based on Inheritance

在线阅读下载全文

作  者:陈传波[1] 李博[1] 喻之斌[1] 

机构地区:[1]华中科技大学计算机科学与技术学院,湖北武汉430074

出  处:《计算机工程与科学》2008年第4期89-91,127,共4页Computer Engineering & Science

摘  要:本文首先介绍了面向对象软件的特征,然后具体分析了C&K度量法,着重分析了其中与类继承相关的继承树深度(DIT)和孩子数目(NOC)度量准则。在此基础上,通过分析超类与其子类中元素(方法和属性)的继承关系,提出了基于继承的内聚度度量方法,从而克服了C&K度量法中对类继承性、多态性方面度量的不足,为综合评价类的内聚度提供了指南。In this paper, we firstly introduce the common characteristics of object-oriented software, describe the C&K metrics suite, and focuses on analysing the criterion for DIT and NOC which is dependent on inheritance, Based on this, the paper analyzes the inheritance of the elements(method and attribute) in the super classes and the derived classes,and proposes a new class cohesion measurement model that will overcome the flaws of the C&K metrics in inheritance and polymorphism, and provides a new guide to evaluating the cohesion between the classes.

关 键 词:软件度量 面向对象 内聚 继承 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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