摘要
本文首先介绍了面向对象软件的特征,然后具体分析了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.
出处
《计算机工程与科学》
CSCD
2008年第4期89-91,127,共4页
Computer Engineering & Science
关键词
软件度量
面向对象
内聚
继承
software metric
object-oriented
cohesion
inheritance