An empirical investigation of an object-oriented software system

被引:129
作者
Cartwright, M [1 ]
Shepperd, M [1 ]
机构
[1] Bournemouth Univ, Dept Comp, Poole BH12 5BB, Dorset, England
关键词
metrics; object orientation; empirical analysis;
D O I
10.1109/32.879814
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper describes an empirical investigation into an industrial object-oriented (OO) system comprised of 133,000 lines of C++. The system was a subsystem of a telecommunications product and was developed using the Shlaer-Mellor method. From this study, we found that there was little use of OO constructs such as inheritance and, therefore, polymorphism. It was also found that there was a significant difference in the defect densities between those classes that participated in inheritance structures and those that did not, with the former being approximately three times more defect-prone. We were able to construct useful prediction systems for size and number of defects based upon simple counts such as the number of states and events per class. Although these prediction systems are only likely to have local significance, there is a more general principle that software developers can consider building their own local prediction systems. Moreover, we believe this is possible, even in the absence of the suites of metrics that have been advocated by researchers into OO technology. As a consequence, measurement technology may be accessible to a wider group of potential users.
引用
收藏
页码:786 / 796
页数:11
相关论文
共 19 条
[1]   Evaluating the impact of Object-Oriented design on software quality [J].
Abreu, FBE ;
Melo, W .
PROCEEDINGS OF THE 3RD INTERNATIONAL SOFTWARE METRICS SYMPOSIUM, 1996, :90-99
[2]  
ABREU FBE, 1994, J SYST SOFTWARE, V26, P87, DOI 10.1016/0164-1212(94)90099-X
[3]  
[Anonymous], 1992, OBJECT LIFECYCLES MO
[4]  
BASILI VR, 1995, CSTR3443 U MAR
[5]  
BOOCH G, 1994, OBJECT ORIENTED ANAL
[6]   A METRICS SUITE FOR OBJECT-ORIENTED DESIGN [J].
CHIDAMBER, SR ;
KEMERER, CF .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (06) :476-493
[7]   Managerial use of metrics for object-oriented software: An exploratory analysis [J].
Chidamber, SR ;
Darcy, DP ;
Kemerer, CF .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1998, 24 (08) :629-639
[8]  
FENTON N, 1996, SOFTWARE METRICS RIG
[9]   CYCLOMATIC COMPLEXITY DENSITY AND SOFTWARE MAINTENANCE PRODUCTIVITY [J].
GILL, GK ;
KEMERER, CF .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (12) :1284-1288
[10]   An evaluation of the MOOD set of object-oriented software metrics [J].
Harrison, R ;
Counsell, SJ ;
Nithi, RV .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1998, 24 (06) :491-496