Improvement on CK Metrics Suite for Object-Oriented Software
-
摘要: 为弥补CK套件中每类加权方法数量、继承树深度和方法内聚缺乏度等度量指标的缺陷,提出了如下改进的度量指标:每类加权方法参数复杂性(WMACC)、每类加权方法属性复杂性(WACC)、相对继承树深度(RDIT)、方法内聚性(CM)和封装率(ER).用Java的Util包中的类作为测试数据比较了ICK度量套件和CK套件,结果表明,WMACC和CM更准确地反映了方法的复杂性和内聚性,RDIT更适合于纯面向对象系统的环境.WACC和ER提供了对属性复杂性和封装性的度量.Abstract: To overcome the shortcomings of CK suite in terms of its metrics,such as WMC(weighted methods per class),DIT(depth of inheritance tree),and LCOM(lack of cohesion in methods) for object-oriented software,an improved CK(ICK) suite was proposed.In the ICK suite,weighted method argument complexity per class(WMACC),weighted attribute complexity per class(WACC),relative DIT(RDIT),cohesion in methods(CM),and encapsulation ratio(ER) were defined.The ICK suite was evaluated and compared with the CK suite using the classes in the Util package of Java,and the results show that WMACC and CM describe the complexity and cohesion of methods better,and RDIT is more suitable for object-oriented software.WACC and ER provide metrics for attribute complexity and performance in encapsulation,respectively.
-
Key words:
- software metrics /
- CK suite /
- software engineering /
- WMC /
- DIT /
- LCOM
-
FENTON N.Software measurement:a necessary scientific basis[J].IEEE Transactions on Software Engineering,1994,20(3):199-206.[2] CHIDAMBER S R,KEMERER C F.A metrics suite for object oriented design[J].IEEE Transactions on Software Engineering,1994,20(6):476-493.[3] HARRISON R,COUNSELL S J,NITHI R V.An evaluation of the MOOD set of object-oriented software metrics[J].IEEE Transactions on Software Engineering,1998,24(6):491-496.[4] CHEN J Y,LU J F.A new metric for object-oriented design[J].Information and Software Technology,1993,35(4):232-240.[5] CHURCHER N I,SHEPPERD M J.Comments on a metrics suite for object oriented design[J].IEEE Transactions on Software Engineering,1995,21 (3):263-265.[6] SUBRAMANYAM R,KRISHNANM S.Empirical analysis of CK metrics for object-oriented design complexity:implications for software defects[J].IEEE Transactions on Software Engineering,2003,29(4):297-310.[7] ALSHAYEB M,LI W.An empirical validation of object-oriented metrics in two different iterative software processes[J].IEEE Transactions on Software Engineering,2003,29(11):1 043-1 049.[8] 马志新,徐德启,杜伟杰.面向对象软件度量C K方法的研究与改进[J].电子科技大学学报,2006,35(3):396-398.MA Zhixin,XU Deqi,DU Weijie.An improvement on C K object-oriented software metrics suite[J].Journal of University of Electronic Science and Technology of China,2006,35 (3):396-398.[9] SELLERS B H.Software metrics[M].Hemel Hempstead:Prentice Hall,1996.[10] 邢大红,汪和才,刘宗田.面向对象软件度量方法C K的改进[J].计算机应用与软件,2001,18(8):9-11.XING Dahong,WANG Hecai,LIU Zongtian.Improvements on C K metrics method of software in OOD[J].Computer Applications and Software,2001,18(8):9-11.
点击查看大图
计量
- 文章访问数: 1138
- HTML全文浏览量: 65
- PDF下载量: 466
- 被引次数: 0