Author:
Zhou Yangxi,Mi Yanran,Zhu Yan,Chen Liangyu
Abstract
AbstractSoftware structure is the backbone for software systems. During the long time of software evolution, it is gradually weakened by continuous code modification and expansion driven by new requirements. Therefore, measuring software and refactoring codes are necessary to keep software structure stable and clean. In this paper, we propose two metrics of cohesion and coupling to characterize package structure. We consider not only the dependencies of intra-package and inter-package, but also the backward dependencies of inter-package. The two metrics are proved theoretically that they are satisfied with Briand’s four properties. Based on these metrics, a refactoring algorithm is presented to improve the quality of package structure. Through tests on ten open source software systems, the experiment result shows our metrics can measure software structure correctly and improve codes to fit for the rule of high cohesion and low coupling.
Publisher
Springer Science and Business Media LLC
Subject
Computational Mathematics,Computer Networks and Communications,Multidisciplinary
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Cascaded Siamese Self-supervised Audio to Video GAN;2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW);2022-06
2. A New Model of Software Network for Object-Oriented Software System;2021 IEEE International Conference on Systems, Man, and Cybernetics (SMC);2021-10-17
3. Software Defect-Proneness Prediction with Package Cohesion and Coupling Metrics Based on Complex Network Theory;Dependable Software Engineering. Theories, Tools, and Applications;2020