当前位置: X-MOL 学术Appl. Netw. Sci. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Measurement and refactoring for package structure based on complex network
Applied Network Science ( IF 1.3 ) Pub Date : 2020-08-18 , DOI: 10.1007/s41109-020-00298-8
Yangxi Zhou , Yanran Mi , Yan Zhu , Liangyu Chen

Software 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.

中文翻译:

基于复杂网络的包装结构测量与重构

软件结构是软件系统的基础。在长时间的软件开发过程中,由于新需求的不断修改和扩展,它逐渐被削弱。因此,必须使用测量软件和重构代码来保持软件结构的稳定和整洁。在本文中,我们提出了凝聚力和耦合度两个指标来表征包装结构。我们不仅考虑了包内和包间的依赖关系,还考虑了包间的后向依赖关系。理论上证明了这两个指标对Briand的四个属性感到满意。基于这些指标,提出了一种重构算法来提高封装结构的质量。通过对十个开源软件系统的测试,
更新日期:2020-08-18
down
wechat
bug