Font Size: a A A

The Research And Implementation Of Refactoring At Java Package Level Based On Clustering Technology

Posted on:2013-01-23Degree:MasterType:Thesis
Country:ChinaCandidate:XuFull Text:PDF
GTID:2298330377459848Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Software evolution is the essential characteristics of software,With the rapiddevelopment of information technology and increasing demand for software system,function of the system also need to continue to improve. The new demand may occur,old needs may no longer need. However, the initial design can’t fully anticipated thesechanges, once it has deviated from its original design, the code will not be controlledthat corrode inevitably code, so system have well maintainability. Especially, forsome programming novice, they are often can’t write a good structure program at theearly stage of learning, that program has low maintenance and procedure of messystructure will be more difficult in debugging, so that some beginners will lose interestand confidence in learning program design.The main research goal of the paper is to improve the Java program structure,make it to meet package increase the intra-package cohesion and reduce theinter-package coupling of software features. Research contents include identificationall kinds of dependencies of Java procedures. How to adjust program structure basedon clustering algorithm. Summary on refactor operation of Java package. Providesemi-automated software support platform.Based on above research target and content, the paper research reconstructiontechnology of Java package based on a hierarchical clustering algorithm. The first ispresented based on the Jaccard coefficient formula of distance study and model of classdependency relation of Java package, the paper also introduces the application ofclustering algorithm in model. Then, simple summarizes that the software applicationmay exist bad smell and Java package may exist bad smell, elaborated in detailpackage reconfiguration rules. Finally, describe Java package reconstruction systemdevelopment based on the clustering algorithm. From requirement analysis, functiondesign, system architecture and implementation of the system of the whole process. Atthe same time, elaborate Java package reconstruction process and effect based onclustering algorithm using a small application procedure. Experiments show that thisapproach can help software developers to improve the Java program structure andmaintenance, make procedure as much as possible to meet increasing the intra-packagecohesion and reducing the inter-package coupling.
Keywords/Search Tags:clustering, refactoring, dependency relationship model, Java package
PDF Full Text Request
Related items