The structured complexity of object-oriented programs

被引:0
|
作者
Fóthi, A [1 ]
Nyéky-Gaizler, J [1 ]
Porkoláb, Z [1 ]
机构
[1] Eotvos Lorand Univ, Dept Gen Comp Sci, H-1117 Budapest, Hungary
关键词
software metrics; object-oriented programming; complexity;
D O I
10.1016/S0895-7177(03)90066-5
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
There are several methods measuring the complexity of object-oriented programs. Most of them are based on some special object-oriented feature: number of methods/classes, cohesion of classes, inheritance, etc. In practice, however, object-oriented programs are constructed with the help of the same control structures as traditional ones. Moreover, recent ideas of multiparadigm programming (i.e., emerging use of generic programming and aspect-oriented programming) has the effect that in modern programs-and even in class libraries-object-orient at ion is only one (however major) construction tool among others. An adequate measure therefore should not be based on special features of one paradigm, but on basic language elements and construction rules which could be applied to many different paradigms. In our model discussed here, the complexity of a program is the sum of three components: the complexity of its control structure, the complexity of data types used, and the complexity of the data handling (i.e., the complexity of the connection between the control structure and the data types). We suggest a new complexity measure. First, we show that this measure works well on procedural programs, and then we extend it to object-oriented programs. There is a software tool under development based on gnu g++ compiler which computes our new measure. We can apply this tool to C and C++ sources to gain a number of quantitative results with our measure. (C) 2003 Elsevier Ltd. All rights reserved.
引用
收藏
页码:815 / 827
页数:13
相关论文
共 50 条
  • [41] Object-oriented representation of structured process models
    Marquardt, W.
    Computers and Chemical Engineering, 1992, 16 (suppl.):
  • [42] An object-oriented approach to structured parallel programming
    Corradi, A
    Leonardi, L
    Zambonelli, F
    SOFTWARE-CONCEPTS AND TOOLS, 1997, 18 (03): : 110 - 124
  • [43] The software complexity model and metrics for object-oriented
    Da-wei, E.
    2007 International Workshop on Anti-counterfeiting, Security, and Identification, 2007, : 463 - 468
  • [44] Metrics for measuring complexity in object-oriented analysis
    Kim, YK
    Park, JN
    PROCEEDINGS OF THE 6TH JOINT CONFERENCE ON INFORMATION SCIENCES, 2002, : 422 - 426
  • [45] Measurement of object-oriented software spatial complexity
    Chhabra, JK
    Aggarwal, KK
    Singh, Y
    INFORMATION AND SOFTWARE TECHNOLOGY, 2004, 46 (10) : 689 - 699
  • [46] A SOFTWARE COMPLEXITY MODEL OF OBJECT-ORIENTED SYSTEMS
    TEGARDEN, DP
    SHEETZ, SD
    MONARCHI, DE
    DECISION SUPPORT SYSTEMS, 1995, 13 (3-4) : 241 - 262
  • [47] Static slicing of concurrent object-oriented programs
    Zhao, JJ
    Cheng, JD
    Ushijima, K
    TWENTIETH ANNUAL INTERNATIONAL COMPUTER SOFTWARE & APPLICATIONS CONFERENCE (COMPSAC'96), PROCEEDINGS, 1996, 20 : 312 - 320
  • [48] Change impact analysis for object-oriented programs
    Ryder, B.G.
    Tip, F.
    ACM SIGPLAN/SIGSOFT Workshop on Program Analysis for Software Tools and Engineering, 2001, : 46 - 53
  • [49] Dynamic slicing object-oriented programs for debugging
    Xu, BW
    Chen, ZQ
    SCAM 2002: SECOND IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS MANIPULATION, PROCEEDINGS, 2002, : 115 - 122
  • [50] Testing coupling relationships in object-oriented programs
    Alexander, Roger T.
    Offutt, Jeff
    Stefik, Andreas
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2010, 20 (04): : 291 - 327