Skip to main content

An Object-Oriented Software Complexity Metric for Cohesion

  • Chapter
  • First Online:
A Journey Towards Bio-inspired Techniques in Software Engineering

Part of the book series: Intelligent Systems Reference Library ((ISRL,volume 185))

Abstract

The quality of object oriented (OO) software is often measured with the help of OO metrics—A specific type of software metrics that particularly evaluates the features of OO programming such as modularity, understandability, readability, reusability and extensibility. OO metrics that are derived by the concepts of cohesion and coupling depict good measures of module design in such way the module that shares high quotient of data within the module is better than sharing data between them. Thus, the quantification of data/information sharing within the software module is still in the thrust area of research for the approval of module design. The adaptability of existing cohesion metrics is a major concern for the developer as the metric value does not define a clear boundary between low, medium and high cohesions. To overcome this issue, in this chapter, a novel cohesion metric called Cohesion in Method (CohM) is proposed. The metric clearly defines a boundary between the levels of cohesionsby taking the benefits of Jaccard similarity measure. Thus, helps to evaluate software for reusability and maintainability. The results show that the metric comparatively gives better results than the traditional cohesion metrics by clearly differentiating medium and high level cohesions in software module.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Boehm, B.W., Brown, J.R., Lipow, M.: Quantitative evaluation of software quality. In: Proceedings of the 2nd International Conference on Software Engineering, pp. 592–605. IEEE Computer Society Press (1976)

    Google Scholar 

  2. Asagba, P.O., Ogheneovo, E.E.: A comparative analysis of structured and object-oriented programming methods. J. Appl. Sci. Environ. Manag. 12(4) (2008)

    Google Scholar 

  3. Athanasopoulos, D., Zarras, A.V., Miskos, G., Issarny, V., Vassiliadis, P.: Cohesion-driven decomposition of service interfaces without access to source code. IEEE Trans. Serv. Comput. 8(4), 550–562 (2015)

    Google Scholar 

  4. Al Dallal, J., Morasca, S.: Predicting object-oriented class reuse-proneness using internal quality attributes. Empir. Softw. Eng. 19(4), 775–821 (2014)

    Article  Google Scholar 

  5. Kalantari, S., Alizadeh, M., Motameni, H.: Evaluation of reliability of object-oriented systems based on Cohesion and Coupling Fuzzy computing. J. Adv. Comput. Res. 6(1), 85–99 (2015)

    Google Scholar 

  6. Etzkorn, L.H., Gholston, S.E., Fortune, J.L., Stein, C.E., Utley, D., Farrington, P.A., Cox, G.W.: A comparison of cohesion metrics for object-oriented systems. Inf. Softw. Technol. 46(10), 677–687 (2004)

    Article  Google Scholar 

  7. Chidamber, S.R., Kemerer, C.F.: A metrics suite for object oriented design. IEEE Trans. Softw. Eng. 20(6), 476–493 (1994)

    Article  Google Scholar 

  8. Hitz, M., Montazeri, B.: Chidamber and Kemerer’s metrics suite: a measurement theory perspective. IEEE Trans. Softw. Eng. 22(4), 267–271 (1996)

    Article  Google Scholar 

  9. Li, W., Henry, S.: Object-oriented metrics that predict maintainability. J. Syst. Softw. 23(2), 111–122 (1993)

    Article  Google Scholar 

  10. Bieman, J.M., Kang, B.K.: Cohesion and reuse in an object-oriented system. ACM SIGSOFT Softw. Eng. Notes 20(SI), 259–262 (1995)

    Google Scholar 

  11. Vijayaraj, N., Ravi, T.N.: An advanced cognitive complexity metric for cohesion factor. Int. J. Pure Appl. Math. 118(9), 85–90 (2018)

    Google Scholar 

  12. Weyuker, E.J.: Evaluating software complexity measures. IEEE Trans. Softw. Eng. 14(9), 1357–1365 (1988)

    Article  MathSciNet  Google Scholar 

  13. Aggarwal, K.K., Singh, Y., Kaur, A., Malhotra, R.: Software design metrics for object-oriented software. J. Object Technol. 6(1), 121–138 (2007)

    Article  Google Scholar 

  14. Anbumani, K., Srinivasan, K.P.: A set of object-oriented design metrics. J. Inst. Eng. 86, 1–9 (2005)

    Google Scholar 

  15. Chidamber, S.R., Kemerer, C.F.: A metrics suite for object-oriented design. IEEE Trans. Softw. Eng. 20(6), 476–493 (1994)

    Google Scholar 

  16. RadhikaRaju, P., AnandaRao, A.: A metrics suite for variable categorization to support program invariants. Int. J. Softw. Eng. Appl. 5(5), 65–83 (2014)

    Google Scholar 

  17. Rajnish, K.: Theoretical validation of inheritance metrics for object-oriented design against briands property. Int. J. Inf. Eng. Electron. Bus. 3, 28–33 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to A. Umamakeswari .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Joy Christy, A., Umamakeswari, A. (2020). An Object-Oriented Software Complexity Metric for Cohesion. In: Singh, J., Bilgaiyan, S., Mishra, B., Dehuri, S. (eds) A Journey Towards Bio-inspired Techniques in Software Engineering. Intelligent Systems Reference Library, vol 185. Springer, Cham. https://doi.org/10.1007/978-3-030-40928-9_4

Download citation

Publish with us

Policies and ethics