首页 | 官方网站   微博 | 高级检索  
     

基于客户程序度量包内聚性
引用本文:周天琳,徐宝文,史 亮,周毓明.基于客户程序度量包内聚性[J].软件学报,2009,20(2):256-270.
作者姓名:周天琳  徐宝文  史 亮  周毓明
作者单位:1. 东南大学,计算机科学与工程学院,江苏,南京,210096
2. 东南大学,计算机科学与工程学院,江苏,南京,210096;南京大学,计算机软件新技术国家重点实验室,江苏,南京,210093;南京大学,计算机科学与技术系,江苏,南京,210093
3. 微软中国研发集团,北京,100190
4. 南京大学,计算机软件新技术国家重点实验室,江苏,南京,210093;南京大学,计算机科学与技术系,江苏,南京,210093
基金项目:Supported by the National Science Foundation for Distinguished Young Scholars of China under Grant No.60425206 (国家杰出青年科学基金); the National Natural Science Foundation of China under Grant Nos.90818027, 60503033, 60633010 (国家自然科学基金); the Natural Science Foundation of Jiangsu Province of China under Grant No.BK2006094 (江苏省自然科学基金)
摘    要:为了一致而高效地计算包内聚性,许多研究者提出了大量的包内聚性度量方法.然而,这些方法主要依赖于包内部的数据流关系,常导致度量结果与实际开发经验相悖.为了解决这一问题,首先以包的职责为基础将包划分为4类.然后,提出了共同重用内聚CRC,并根据包的分类框架讨论了CRC的适用性.CRC的核心思想是若多个类总被共同重用,则它们之间存在紧密耦合.最后,提出了度量CRC的海明内聚度HC.与现有方法相比,HC同时考虑了包内和包间的数据依赖.因而,该方法能够有效地反映包内部类间的语义关系.此外,HC利用包的使用模式提高了度量结果的可区分性.实验研究表明HC能够有效评估包的内聚程度.充分说明了作为HC基础的CRC具有较高的合理性.

关 键 词:软件度量  内聚性  
收稿时间:2008/2/27 0:00:00
修稿时间:2008/4/16 0:00:00

Measuring Package Cohesion Based on Client Usages
ZHOU Tian-Lin,XU Bao-Wen,SHI Liang and ZHOU Yu-Ming.Measuring Package Cohesion Based on Client Usages[J].Journal of Software,2009,20(2):256-270.
Authors:ZHOU Tian-Lin  XU Bao-Wen  SHI Liang and ZHOU Yu-Ming
Affiliation:1+;1;2;3;2;3;School of Computer Science and Engineering;Southeast University;Nanjing 210096;China;State Key Laboratory for Novel Software Technology;Nanjing University;Nanjing 210093;China;Department of Computer Science and Technology;China;Microsoft China Research & Develop Group;Beijing 100190;China
Abstract:A number of package cohesion metrics have been proposed in the last decade, but they mainly converge on intra-package data dependencies between classes, which are inadequate to represent the semantics of packages in many cases. To address this problem, the authors first classify packages into four categories in terms of the kinds of their tasks. Next, a new package cohesion called CRC based on client usages is proposed by considering the fact that several classes are closely related if they are always reused together. And then the application areas of CRC in terms of the package classification framework are analyzed. Finally, a CRC measure called HC is presented. Compared to existing package cohesion metrics, HC considers not only intra-package but also inter-package data dependencies. It is hence able to reveal semantic relationships between classes. Furthermore, HC takes into account how the clients of a package use the package, thereby providing a finer-grain evaluation of the cohesion of a package. Experimental results demonstrates the effectiveness of HC, which likewise proves the feasibility of CRC.
Keywords:software measurement  cohesion  package
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号