Abstract
Software design knowledge is often captured in informal text, leading to the loss of critical architectural rationale over time. This paper presents a structured methodology for classifying "Software Design Artifacts" (SDAs) by adapting enterprise architecture principles. By utilizing a 6x6 classification matrix and a logical decision tree, the proposed approach transforms messy textual descriptions into a formal, traceable network of design knowledge known as a Software-Structure Map (SSM).
Introduction
Software engineering involves a continuous stream of decisions regarding goals, constraints, patterns, and trade-offs. These "Software Design Artifacts" (SDAs) are frequently scattered across disparate documents, emails, and the tacit knowledge of developers. A significant challenge in the field is the lack of a standardized method for managing these artifacts and their interrelationships. When a designer selects a specific pattern, such as the "Template Method," they address particular concerns while accepting specific trade-offs. Without a methodical recording process, the "why" behind these decisions is often lost, complicating system maintenance and evolution. This research aims to bridge the gap between informal design descriptions and formal knowledge management.
Methodology
The authors propose the SAM (Software Architecture Mapping) framework, which relies on two primary tools for organizing design knowledge:
- The Classification Scheme (CS): A 6x6 matrix inspired by the Zachman Framework. The columns represent "interrogatives" (Why, When, What, Which, How, Where), while the rows represent design activities ranging from selecting objectives to evaluating structures. This matrix effectively separates the problem space (Why/When/What) from the solution space (Which/How/Where).
- The Decision Tree: A logical flow tool that guides the classification of specific SDAs by addressing questions regarding their nature (e.g., whether they describe reasoning or belong to the organizational vs. design space).
The analysis process consists of six distinct tasks: extracting linguistic elements (verbs and nouns), identifying candidate SDAs and relationships using heuristics, classifying SDAs via the decision tree, normalizing relationships (e.g., Mandatory, Encapsulate, Realize), and finally inferring the Software-Structure Map (SSM).
Datasets and Application
Rather than using traditional machine learning datasets, the study applies its technique to established software engineering literature. The methodology was validated using the Template Method (TM) design pattern from the "Gang of Four" and various architectural tactics and styles from foundational texts by Bass et al. and Clements et al.
Key Insights
- Zachman for Software: The research innovatively scales down the Zachman Framework—typically reserved for enterprise architectures—to the level of individual design patterns, providing a rigorous coordinate system for design knowledge.
- Rationale as a First-Class Artifact: By treating "Rationale" and "Concern" as explicit SDAs, the framework ensures that the reasoning behind a design is as traceable as the resulting code structure.
- Text-to-Network Transformation: The method offers a systematic path to decompose descriptive text into a network of related nodes, where concerns relate to patterns, which are in turn realized by specific structures.
Results
The application of this technique to the Template Method (TM) design pattern yielded a comprehensive SSM. The authors identified and classified over 30 distinct SDAs within this single pattern, including 4 specific concerns (e.g., "Avoid code duplication") and 6 rationales (e.g., "Maintain the algorithm’s structure"). The resulting SSM serves as a traceability matrix, demonstrating how high-level organizational goals like reusability manifest in specific class definitions and behaviors.
Limitations and Future Work
While effective, the current process of linguistic extraction and decision tree navigation is largely a manual, expert-driven task, which may limit scalability for large projects. Future work will focus on developing automated tool support to assist in eliciting arguments and analyzing SSMs. Additionally, the authors intend to explore how interconnected SSMs perform in massive enterprise systems and aim to build a formal reference model of SDAs to support automated design decision-making.
Summary updated