Class structure refactoring of object-oriented softwares using community detection in depe
Class structure refactoring of object-oriented softwares using community detection in
dependency networks
Weifeng PAN;Bing LI;Yutao MA;Jing LIU;Yeyi QIN
【期刊名称】《中国高等学校学术文摘·计算机科学》 【年(卷),期】2009(003)003
【摘要】The quality of a software system is largely de-termined by its internal structures which always degrade over the software evolution. Therefore, the structures have to be reconditioned from time to time. However, the ex-isting methods are very complex and resource-consuming when doing this task. In this paper, we present an approach to recondition the class structures of object-otiented (OO) software systems. It uses attribute-method networks and method-method networks to represent attributes, methods and dependencies between them; It proposes a guided com-munity detection algorithm to obtain the optimized commu-nity structures in the method-method networks, which also correspond to the optimized class structures; It also provides a list of refactorings by comparing the optimized class struc-tures with the real class structure in software systems and inspecting the attribute-method networks. The approach is evaluated using the open-source case study, JHotDraw 5.1, and the advantages of our approach are illustrated in com-parison with existing methods.