J4 ›› 2008, Vol. 30 ›› Issue (4): 89-91.
• 论文 • 上一篇 下一篇
陈传波 李博 喻之斌
出版日期:
发布日期:
Online:
Published:
摘要:
本文首先介绍了面向对象软件的特征,然后具体分析了C&K度量法,着重分析了其中与类继承相关的继承树深度(DIT)和孩子数目(NOC)度量准则。在此基础上,通过分析 超类与其子类中元素(方法和属性)的继承关系,提出了基于继承的内聚度度量方法,从而克服了C&K度量法中对类继承性、多态性方面度量的不足,为综合评价类的内聚度 度提供了指南。
关键词: 软件度量 面向对象 内聚 继承
Abstract:
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 e) 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 n inheritance and polymorphism, and provides a new guide to evaluating the cohesion between the classes.
Key words: software metric, object-oriented, cohesion, inheritance
陈传波 李博 喻之斌. 基于继承的内聚度度量方法研究[J]. J4, 2008, 30(4): 89-91.
0 / / 推荐
导出引用管理器 EndNote|Ris|BibTeX
链接本文: http://joces.nudt.edu.cn/CN/
http://joces.nudt.edu.cn/CN/Y2008/V30/I4/89