Skip to main content
Log in

A metric for package level coupling

  • Original Research
  • Published:
CSI Transactions on ICT Aims and scope Submit manuscript

Abstract

Several software development activities are based on object oriented paradigm. Such software projects comprise of packages that are collection of correlated classes which can be reused. This reusability of a package depends on its cohesion and coupling strength. To determine the coupling and cohesion, there are several established metrics at the class level, but at the package level, such reliable and established metrics rarely exist. To address this important issue, a new metric, termed as package level coupling (PLC) is proposed in this paper. The metric estimates the quality, as well as reusability of the object-oriented software. The connections among these packages and sub-connections among the classes, related to different packages are used to determine the proposed metric, i.e., PLC. To establish the proposed metric, it is successfully experimented over four large java-based open source software comprising of multiple packages. Further, it is statistically correlated with the help of various parameters, i.e., number of sub-connections and number of classes of the package. The experimental results show a very weak correlation between the proposed PLC and the number of classes in the package. Spearman’s Rank correlation coefficient is used to illustrate the correlation between sub-connection and PLC. A smaller value of 0.108 is obtained signifying that there is no strong correlation between these two parameters. Further, a correlation between PLC and number of classes obtained is −0.061, signifying that these two parameters tends towards independency while other existing approaches are highly dependent on number of classes.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16

Similar content being viewed by others

References

  1. Page-Jones M (1988) The practical guide to structured systems design, 2nd edn. Yourdon Press, Englewood Cliffs

    Google Scholar 

  2. Stevens W, Myers G, Constantine L (1974) Structured design. IBM Syst J 13(2):115–139

    Article  Google Scholar 

  3. Martin R (1995) Object Oriented design quality metrics: an analysis of dependencies. Road 2(3):14

    Google Scholar 

  4. Rumbaugh J (1991) Object-oriented modeling and design, Prentice Hall, ISBN 0136298419, 9780136298410,1991

  5. Chidamber SR, Kemerer CF (1991) Towards a metrics suite for object oriented design. In: Conference proceedings on object-oriented programming systems, languages, and applications, OOPSLA’91, New York, pp 197–211

  6. Li W (1998) Another metric suite for object-oriented programming. J Syst Softw 44(2):155–162

    Article  Google Scholar 

  7. Tang M-H, Kao M-H, Chen M-H (1999) An empirical study on object-oriented metrics. In: Proceedings of the 6th international symposium on software metrics (METRICS ‘99). IEEE Computer Society, Washington, DC

  8. Basili VR, Briand LC, Melo WL (1996) A validation of object-oriented design metrics as quality indicators. IEEE Trans Softw Eng 22(10):751–761

    Article  Google Scholar 

  9. Coupling of object oriented systems-derivation and mutual study of cohesion and coupling, Thesis Report, School of Engineering at Blekinge Institute of Technology

  10. Abreu FB, Melo W (1996) Evaluating the impact of object-oriented design on software quality. In: Proceedings of 3rd IEEE international software metrics symposium (METRICS’96), Berlin, pp 90–99

  11. Abreu FB, Goula˜o M, Esteves R, (1995) Toward the design quality evaluation of object-oriented software systems. In: Proceedings of 5th international conference on software quality, Austin

  12. Bela U, Rudolf F, Denys P, Tibor G (2010) New conceptual coupling and cohesion metrics for object-oriented systems. In: Proceedings of the 10th IEEE working conference on source code analysis and manipulation (SCAM ‘10). IEEE Computer Society, Washington, DC, pp 33–42

  13. Briand LC, Wu¨st J, Daly JW, Porter JW (2000) Exploring the relationships between design measures and software quality in object-oriented systems. J Syst Softw 51:245–273

    Article  Google Scholar 

  14. Marchesi M (1998) OOA metrics for the unified modeling language. In: Proceedings of the 2nd Euromicro conference on software maintenance and reengineering (CSMR’98) (CSMR ‘98). IEEE Computer Society, Washington, DC, USA, pp 67–74

  15. Atole CS, Kale KV (2006) In Proceedings of 1st international conference on assessment of package cohesion and coupling principles for predicting the quality of object oriented design, digital information management

  16. Offutt J, Harrold MJ, Kolte P (1993) A software metric system for module coupling. J Syst Softw 20(3):295–308 (March 1993)

    Article  Google Scholar 

  17. Gui G, Scott PD (2008) New coupling and cohesion metrics for evaluation of software component reusability. In: The 9th international conference for young computer scientists, ICYCS 2008, pp 1181, 1186

  18. Capiluppi A, Boldyreff C (2008) Identifying and improving reusability based on coupling patterns , high confidence software reuse in large systems. Lecture Notes in Computer Science, vol 5030, pp 282–293

  19. Gupta V, Chhabra JK (2009) Package coupling measurement in object-oriented software. J Comput Sci Technol 24(2):273–283

    Article  Google Scholar 

  20. Husein S, Oxley A (2009) A coupling and cohesion metrics suite for object-oriented software. In: Proceedings of the 2009 international conference on computer technology and development-volume 01 (ICCTD ‘09), vol 1, pp 421–425. IEEE Computer Society, Washington, DC

  21. Briand LC, Daly J, Wüst J (1999) A unified framework for coupling measurement in OO systems. IEEE TSE 25(1):91–121

    Google Scholar 

  22. Patidar K, Gupta RK, Chandel GS (2013) Coupling and cohesion measures in object oriented programming. Int J Adv Res Comput Sci Softw Eng 3(3), ISSN: 2277 128X

  23. Poshyvanyk D, Marcus A (2006) The conceptual coupling metrics for object-oriented systems. In: 22nd IEEE international conference on software maintenance, ICSM’06

  24. Hitz, M, Montazeri B (1995) Measuring coupling and cohesion in object-oriented systems. In: Proceedings of the international symposium on applied corporate computing, vol 50, pp 75–76

  25. Kebir S, Seriai A-D, Chardigny S, Chaoui A (2012) Quality—centric approach for software component identification from object-oriented code. In: IEEE 2012 joint working conference on software architecture and 6th European conference on software architecture, pp 181–190

  26. Chavez C, Garcia A (2012) Concern-based cohesion: unveiling a hidden dimension of cohesion measurement. In: IEEE 20th international conference on program comprehension (ICPC), pp 103, 112

  27. Sheldon T, Jerath K, Chung H (2002) Metrics for maintainability of class inheritance hierarchies. J Softw Maint Evol 14(3):147–160

    Article  MATH  Google Scholar 

  28. http://www.ace.upm.edu.my/~bas/5950/Spearman%20Rho%20Table.pdf

  29. Spearman’s rank correlation-MEI. http://www.mei.org.uk/files/pdf/Spearmanrcc.pdf

  30. Briand LC, Morasca S, Basili VR (1996) Property—based software engineering measurement. IEEE Trans Softw Eng 22(1):68–86

    Article  Google Scholar 

  31. Eder J, Kappel G, Schrefl M (1994) Coupling and cohesion in object-oriented systems, Technical Report

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

    Article  Google Scholar 

  33. http://www.jakarta.apache.org/ecs/

  34. http://www.xgen.sourceforge.net/xgen/index.html

  35. http://sourceforge.net/projects/java-stratego/

  36. http://www.nzdl.org/Kea/download.html

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aprna Tripathi.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Tripathi, A., Kushwaha, D.S. A metric for package level coupling. CSIT 2, 217–233 (2015). https://doi.org/10.1007/s40012-015-0061-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s40012-015-0061-0

Keywords

Navigation