首页 | 本学科首页   官方微博 | 高级检索  
     

基于继承的内聚度度量方法研究
引用本文:陈传波,李博,喻之斌.基于继承的内聚度度量方法研究[J].计算机工程与科学,2008,30(4):89-91.
作者姓名:陈传波  李博  喻之斌
作者单位:华中科技大学计算机科学与技术学院,湖北,武汉,430074
摘    要:本文首先介绍了面向对象软件的特征,然后具体分析了C&K度量法,着重分析了其中与类继承相关的继承树深度(DIT)和孩子数目(NOC)度量准则。在此基础上,通过分析超类与其子类中元素(方法和属性)的继承关系,提出了基于继承的内聚度度量方法,从而克服了C&K度量法中对类继承性、多态性方面度量的不足,为综合评价类的内聚度度提供了指南。

关 键 词:软件度量  面向对象  内聚  继承
文章编号:1007-130X(2008)04-0089-03
修稿时间:2006年8月29日

An Approach to the Measurement of Class Cohesion Based on Inheritance
CHEN Chuan-bo,LI Bo,YU Zhi-bin.An Approach to the Measurement of Class Cohesion Based on Inheritance[J].Computer Engineering & Science,2008,30(4):89-91.
Authors:CHEN Chuan-bo  LI Bo  YU Zhi-bin
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.
Keywords:software metric  object-oriented  cohesion  inheritance
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号