[Paper Review] Redefining measures of Layered Architecture
This paper redefines layered architecture evaluation by introducing relationship-based metrics that detect back-calls, skip-calls, and cyclic dependencies, while also proposing a new logical separation index. The approach improves upon prior methods by identifying not just violating components, but the specific dependency relations causing violations, enabling more precise refactoring guidance in real-world Java systems like JHotDraw and JFreeChart.
Layered architecture represents the software structure in the form of layers. Every element in the software is assigned to one of the layers such that the relationship amongst the elements is maintained. A set of design principles rules the process of construction of the layered architecture. Various statistical measures have been defined to check whether the layered architecture of a given software is following these design principles or not. In this paper, we redefine the measures of layered architecture based on the relationship between the software components. The measures check for the violations committed regarding the back calls, skip calls, and cyclic structures. Further, we also introduce a new measure to verify the logical separation amongst the layers. The system's current architecture is extracted from the source code and represented using a three-tier layered structure, which is the defacto standard architecture of Java applications. The redefined measures are applied to determine the conformance of layering principles in the system. We evaluate five different software systems for their architecture consistency. The results obtained on our redefined measures are compared to those obtained by applying the standard set of measures. A quantitative analysis of the proposed measures is performed, and we conclude that they can determine the consideration of layering principles followed during the development of a software system.
Motivation & Objective
- To address the limitations of existing layered architecture evaluation metrics that fail to capture the nature of violating dependencies.
- To improve software maintainability by detecting not only which components violate layering principles, but also the specific dependency relations causing violations.
- To introduce a new logical separation index to quantitatively assess the quality of layering in recovered software architectures.
- To provide developers with actionable insights for refactoring by identifying problematic dependency relations rather than just components.
- To evaluate the effectiveness of the proposed metrics on real-world Java applications using a three-tier layered structure.
Proposed method
- Reformulate traditional layered architecture measures using dependency relationships between software components instead of component-level counts.
- Define new metrics: back-call violation index, skip-call violation index, and cycle violation index based on explicit dependency types (inheritance, instantiation, parameter passing).
- Introduce a logical separation index that quantifies how well layers are decoupled, using a ratio of inter-layer to total dependencies.
- Extract software architecture from source code using a dependency extraction tool (e.g., Dependency Finder) to build a dependency network.
- Model the software as a social network where components are nodes and dependencies are edges, enabling application of network analysis principles.
- Apply the redefined metrics to five real-world software systems (Constore, JHotDraw, JFreeChart, JCommon) to evaluate conformance to open layering style.
Experimental results
Research questions
- RQ1How can layered architecture evaluation metrics be redefined to better reflect the nature of violating dependencies?
- RQ2To what extent do the new metrics detect and characterize back-calls, skip-calls, and cyclic dependencies more effectively than prior approaches?
- RQ3Can a logical separation index reliably quantify the degree of decoupling between layers in a recovered architecture?
- RQ4How do the proposed metrics compare to existing measures in terms of precision and actionable insight for developers?
- RQ5To what extent do the redefined metrics reflect the actual design intent in real-world software systems?
Key findings
- The Constore application showed a logical separation index of 0.90, indicating strong layering quality, though the top two layers in the HW component were not well separated.
- JHotDraw 7.0.6 had a logical separation index of 0.93 and a skip-call violation index of 0.096, with five back-call violations detected due to specific dependency relations.
- JFreeChart 1.0.0 exhibited 51 skip-call violations but no cycles, and achieved a perfect logical separation index of 1.0, indicating excellent layering.
- The proposed metrics detected 51 skip-call violations in JFreeChart and 5 back-call violations in JHotDraw, with explicit relation-level insights, unlike prior methods.
- The new metrics provided more actionable information than prior approaches by identifying the specific dependency relations causing violations, not just the violating components.
- The measures were found to be sensitive but accurate, as dependency extraction tools and manual validation confirmed high fidelity in relation detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.