TL;DR
This paper surveys existing tools for visualizing reverse-engineered sequence diagrams and identifies key features that aid software understanding. They then developed and evaluated a novel tool, the OASIS Sequence Explorer (OSE), through a user study to understand how these features support reverse engineering tasks and how to improve them.
What Problem Does This Paper Address?
Understanding complex software systems, especially through reverse engineering, is a significant challenge. Sequence diagrams are valuable for visualizing system behavior, but they can become overwhelmingly large and difficult to navigate. Existing tools offer various features to manage this complexity, but there's a lack of empirical evaluation on how these features actually help users understand software. This paper aims to bridge this gap by identifying essential features, developing a tool that implements them, and rigorously evaluating its effectiveness with real users.
Methods
The research employed a mixed-methods approach:
- Literature and Tool Survey: A comprehensive review of research and commercial tools was conducted to identify common interaction and presentation features for sequence diagram visualization.
- Tool Development: The OASIS Sequence Explorer (OSE) was designed and implemented in Java as an Eclipse plugin. This tool incorporated the features identified in the survey and was built with a focus on performance and usability for large diagrams.
- Focus Group: A focus group with experienced software developers was conducted to understand their current reverse engineering practices, how they use (or don't use) sequence diagrams, and to gather initial feedback on the OSE tool. This helped refine the research questions and design tasks for the user study.
- User Study: A lab experiment was performed with six participants who were given a set of reverse engineering tasks to complete using the OSE tool. Their interactions were observed and recorded, followed by interviews and a questionnaire to gather detailed feedback on feature usefulness, user experience, and identify areas for improvement.
Datasets
Not discussed in the paper. The study used a distributed Tetris game application (10,500 source code statements, 57 classes) for the lab experiment.
Key Insights and Ideas
- Feature Overload vs. Usability: While many tools offer numerous features, their actual usefulness in supporting cognitive tasks needs empirical validation. Heavy use of a feature (like scrolling) might indicate necessity but also potential frustration or a sign that the user is struggling to find what they need.
- The Importance of Context: Users frequently needed to switch between sequence diagrams and source code, highlighting the critical need for tight integration between visualization tools and IDEs.
- Cognitive Overload is the Main Barrier: Even with responsive tools and substantial traces, cognitive overload and user frustration were identified as the primary barriers to task completion, rather than tool performance.
- "Visual Stack Trace" is Appealing: The default layout of the OSE, described as a "visual stack trace," was found to be effective and appealing to users for understanding program flow.
- Saving State is Crucial: A significant request was for a "session state saving" feature, akin to undo or bookmarks, allowing users to explore diagrams and easily revert to previous states.
Key Results
- Feature Usage: Zooming/scrolling was the most frequently used feature (700 operations), followed by multiple linked views (473) and grouping/hiding (465). Selection was also used significantly (231). Component navigation, queries/slicing, and focusing were used less frequently.
- Task Success: Participants performed better on functionality-related tasks (T4-T7) than on structure-related tasks (T2, T3), suggesting sequence diagrams are more suited for behavioral understanding than static structure.
- Tool Helpfulness: Five out of six participants felt the OSE tool helped them understand the software's functionality.
- Feature Usefulness Ratings: Most features were rated as "useful" or "critical" in the follow-up questionnaire, with filtering being the only feature rated poorly (2/5 mean score).
- Key Improvements: Participants requested better integration with source code, improved filtering, and the ability to save session states.
Limitations and Future Work
- Limitations:
- Small number of participants and non-random selection limit generalizability.
- Varying levels of experience among participants and the use of a single application (Tetris) and tool (OSE) restrict broad conclusions.
- Not all participants completed all tasks due to time constraints.
- Future Work:
- Extend the OSE tool to incorporate requested features like session state saving and improved filtering.
- Integrate the tool more deeply with IDEs for seamless source code navigation.
- Conduct larger studies with more professional reverse engineers on more complex, realistic tasks.
- Explore richer options for multiple linked views and more powerful processing of reverse-engineered software.
- Investigate augmenting dynamic information with static analysis.
Summary updated