TY - JOUR
T1 - Software structure evaluation based on the interaction and encapsulation of methods
AU - Zheng, Qing Hua
AU - Ou, Zhi Jiang
AU - Liu, Ting
AU - Yang, Zi Jiang
AU - Hou, Yu Qiao
AU - Zheng, Chao
PY - 2012/12
Y1 - 2012/12
N2 - Software structure is the most important factor affecting the quality of a program. The evaluation of software structure is a foundational technique for software development. However, the traditional evaluation criteria, such as "high cohesion and low coupling", are no longer appropriate for the new web applications, which are designed with a hierarchical framework. A novel approach is proposed in this paper to evaluate software quality based on the interaction and encapsulation of methods. In particular, two criteria for high quality software, the functional and hierarchical structure, are proposed to support widely used web applications. The cohesion and coupling and layer matching ratios between methods within a software package are calculated to determine whether the package is well implemented in terms of functional or hierarchical structure. This approach enables us to quantify the quality of a software system according to the structural types of its packages. Experiments were carried out on 18 versions of Struts and six open-source software packages. Our evaluation concurs with the intuition that minor upgrades, aimed at fixing bugs and adding minor functionality quickly, reduce software quality, whereas major upgrades, which normally clean up messy code and re-construct the software, improve software quality.
AB - Software structure is the most important factor affecting the quality of a program. The evaluation of software structure is a foundational technique for software development. However, the traditional evaluation criteria, such as "high cohesion and low coupling", are no longer appropriate for the new web applications, which are designed with a hierarchical framework. A novel approach is proposed in this paper to evaluate software quality based on the interaction and encapsulation of methods. In particular, two criteria for high quality software, the functional and hierarchical structure, are proposed to support widely used web applications. The cohesion and coupling and layer matching ratios between methods within a software package are calculated to determine whether the package is well implemented in terms of functional or hierarchical structure. This approach enables us to quantify the quality of a software system according to the structural types of its packages. Experiments were carried out on 18 versions of Struts and six open-source software packages. Our evaluation concurs with the intuition that minor upgrades, aimed at fixing bugs and adding minor functionality quickly, reduce software quality, whereas major upgrades, which normally clean up messy code and re-construct the software, improve software quality.
KW - functional structure
KW - hierarchical structure
KW - method encapsulation
KW - method interaction
KW - software structure evaluation
UR - https://www.scopus.com/pages/publications/84871755510
U2 - 10.1007/s11432-012-4542-4
DO - 10.1007/s11432-012-4542-4
M3 - 文章
AN - SCOPUS:84871755510
SN - 1674-733X
VL - 55
SP - 2816
EP - 2825
JO - Science China Information Sciences
JF - Science China Information Sciences
IS - 12
ER -