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 条
  • [1] REASONING ABOUT COMPLEXITY OF OBJECT-ORIENTED PROGRAMS
    SCHMIDT, HW
    ZIMMERMANN, W
    PROGRAMMING CONCEPTS, METHODS AND CALCULI, 1994, 56 : 553 - 572
  • [2] Measure of Complexity for Object-Oriented Programs: A Cognitive Approach
    Jakhar, Amit Kumar
    Rajnish, Kumar
    PROCEEDINGS OF 3RD INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING, NETWORKING AND INFORMATICS, ICACNI 2015, VOL 2, 2016, 44 : 397 - 406
  • [3] MODELING OF OBJECT-ORIENTED PROGRAMS WITH PETRI NET STRUCTURED OBJECTS
    Kharitonov, Dmitriy
    Tarasov, George
    Golenkov, Evgeniy
    COMPUTING AND INFORMATICS, 2017, 36 (05) : 1063 - 1087
  • [4] APPLICATION OF COGNITIVE-COMPLEXITY METRICS TO OBJECT-ORIENTED PROGRAMS
    CANT, SN
    HENDERSONSELLERS, B
    JEFFERY, DR
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1994, 7 (04): : 52 - 63
  • [5] Empirical Evaluation of Complexity Metrics for Object-Oriented Programs Japan
    Kamiya, T.
    Beppu, A.
    Kusumoto, S.
    Inoue, K.
    Denki Gakkai Ronbunshi. C, Erekutoronikusu Joho Kogaku, Shisutemu, 117 (11):
  • [6] A logic of object-oriented programs
    Abadi, M
    Rustan, K
    Leino, M
    VERIFICATION: THEORY AND PRACTICE: ESSAYS DEDICATED TO ZHOAR MANNA ON THE OCCASION OF HIS 64TH BIRTHDAY, 2003, 2772 : 11 - 41
  • [7] Encapsulation in object-oriented programs
    Chen, JL
    Wang, FJ
    ACM SIGPLAN NOTICES, 1996, 31 (07) : 30 - 32
  • [8] Slicing object-oriented programs
    Chen, JL
    Wang, FJ
    Chen, YL
    ASIA PACIFIC SOFTWARE ENGINEERING CONFERENCE AND INTERNATIONAL COMPUTER SCIENCE CONFERENCE, PROCEEDINGS, 1997, : 395 - 404
  • [9] OBJECT-ORIENTED PROGRAMS IN REALTIME
    GWINN, JM
    SIGPLAN NOTICES, 1992, 27 (02): : 47 - 56
  • [10] Recursion in object-oriented programs
    Blaschek, Gunther
    Frohlich, Joachim Hans
    JOOP - Journal of Object-Oriented Programming, 1998, 11 (07): : 28 - 35