Research on Visualization for Object-Oriented Program Structure Based on Force-Directed Layout

LI Ning,LIU Chao,YUAN Zi
DOI: https://doi.org/10.3778/j.issn.1002-8331.1208-0544
2013-01-01
Computer Engineering and Applications Journal
Abstract:The analysis and visualization of the overall structure and characteristics in OO programs play an important role in software maintenance and reuse.Although the existing reverse engineering tools can automatically obtain class model through static analysis of source code,there are still some obvious problems in the layout,especially in showing coupling and cohesion of program structure.As a result,these problems have an influence on its practical application.Force-Directed Layout algorithm can show coupling and cohesion in the structure naturally.So it is applied in the class diagram layout in reverse engineering.Consequently,the layout can not only visualize the overall structure of the program clearly,but also show coupling and cohesion in the class diagram at the same time.What's more,this layout can be extended to support the evolution and defect distribution analysis.Accordingly,a sub-tool of software analysis and testing tools is developed based on the Force-Directed Layout algorithm,named QESat/FCD(QualityEasy-Software Analysis and Testing Tools:Force-Directed Class Diagram).And some test cases are introduced to show the visualization of the characteristics of the complex class diagram.
What problem does this paper attempt to address?