A Suite of Cognitive Complexity Metrics
In this paper, we propose a suite of cognitive metrics for evaluating complexity of object-oriented (OO) codes. The proposed metric suite evaluates several important features of OO languages. Specifically, the proposed metrics are to measure method complexity, message complexity (coupling), attributes complexity and class complexity. We propose also a code complexity by considering the complexity due to inheritance for the whole system. All these proposed metrics (except attribute complexity) use the cognitive aspect of the code in terms of cognitive weight. All the metrics have critically examined through theoretical and empirical validation processes.
Keywordssoftware metrics methods messages attributes class coupling inheritance cognitive complexity validation
Unable to display preview. Download preview PDF.
- 1.IEEE Standard 1061-1992: Standard for a Software Quality Metrics Methodology. Institute of Electrical and Electronics Engineers, New York (1992) Google Scholar
- 7.Lorenz, M., Kidd, J.: Object-Oriented Software Metrics. Prentice Hall, Englewood Cliffs (1994)Google Scholar
- 8.Henderson-Selles, B.: Object-Oriented Metrics, Measure of Complexity. Prentice-Hall, Englewood Cliffs (1996)Google Scholar
- 11.Misra, S., Akman, I.: Weighted Class Complexity: A Measure of Complexity for Object-Oriented System. Jour. of Information Science and Engineering 24, 1689–1708 (2008)Google Scholar
- 12.Kan, S.H.: Metrics and Lessons Learned for OO Projects, ch. 12. Metrics and Models in Software Quality Engineering. Addison-Wesley (2003)Google Scholar
- 15.Kim, K., Shin, Y., Wu, C.: Complexity Measures for Object-Oriented Program Based on the Entropy. In: Proc. Asia Pacific Software Engineering, pp. 127–136 (1995)Google Scholar
- 16.Kim, J., Lerch, J.F.: Cognitive Processes in Logical Design: Comparing Object-Oriented and Traditional Functional Decomposition Software Methodologies. Carnegie Mellon University, Graduate School of Industrial Administration, Working Paper (1991) Google Scholar
- 17.Olague, H.M., Etzkorn, L.H., Gholston, S., Quattlebaum, S.: Empirical Validation of Three Software Metrics Suites to Predict Fault-Proneness of Object-Oriented Classes Developed Using Highly Iterative or Agile Software Development Processes. IEEE Transactions on Software Engineering 33(6), 402–419 (2007)CrossRefGoogle Scholar
- 18.Pfleeger, S.L., Atlee, J.M.: Software Engineering – Theory and Practice. Prentice-Hall (2006)Google Scholar
- 19.Sommerville, I.: Software Engineering. Addison Wesley (2004) Google Scholar