Computer Engineering and Applications ›› 2015, Vol. 51 ›› Issue (20): 50-54.
Previous Articles Next Articles
ZHONG Linhui, ZHANG Nengwei, HOU Changyuan, ZONG Hongyan
Online:
Published:
钟林辉,张能伟,侯长源,宗鸿雁
Abstract: In order to improve the quality of the Java source code for meeting the design requirements of the “high cohesion, low coupling”, this paper presents an extended Jaccard index (also called Jaccard distance), based on which it implements a hierarchical clustering algorithm to cluster several closely related classes into the candidate package. The tests show that the structure of Java source code is the more in line with the characteristics of high cohesion and low coupling after adjustment.
Key words: software refactoring, high cohesion, low coupling, Jaccard index
摘要: 为了改善Java源程序的质量,使之尽可能地符合“高内聚、低耦合”的设计要求,提出了扩展的Jaccard系数,并将其作为实体间相似性的度量公式,采用层次聚类算法将Java类图划分为若干个候选包。在基于交互及度量重构策略的引导下,对Java程序结构进行调整。通过实验表明,经过调整以后的Java源程序,在结构上更符合“高内聚、低耦合”的特征。
关键词: 软件重构, 高内聚, 低耦合, Jaccard系数
ZHONG Linhui, ZHANG Nengwei, HOU Changyuan, ZONG Hongyan. Improved software refactoring method based on hierarchical clustering algorithm[J]. Computer Engineering and Applications, 2015, 51(20): 50-54.
钟林辉,张能伟,侯长源,宗鸿雁. 一种改进的基于层次聚类的软件重构技术研究[J]. 计算机工程与应用, 2015, 51(20): 50-54.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://cea.ceaj.org/EN/
http://cea.ceaj.org/EN/Y2015/V51/I20/50