The quality of the software system is largely determined by its internal structure, while optimizing software tends to make the software internal structure more complex , which may degrade the performance of the software, so the structure of the software needs the optimization of repair. Previous methods for this operation are very complex and trival, this paper researches mainly how to realize the class structure code refactoring by common mining technology. Community is adopted in the technique points and the dependencies between them are applied to represent the method of attribute dependence of software system, According to the rules of community detection method, the relations between network optimization structure is obtained, meanwhile the internal structure of a class is improved, therefore the refactoring of the software class structure is ultimately implemented.%软件系统的质量很大程度上是由其内部结构决定的,在对软件进行优化时往往会使软件内部结构更加复杂,这样就可能会降低软件的性能,所以软件的结构需要一次次的优化修复。以往存在的方法进行这项操作非常复杂繁琐,本文的研究主要是通过共同发掘技术,来实现类结构的代码重构。这项技术中采用了群落点以及相互之间的依赖关系来代表软件系统中的方法属性的依赖关系,按照社区检测的规则来获得方法间网络关系的最优化结构,同时也改善了类的内部结构,实现了软件类结构的重构。
展开▼