An Aspect-oriented Software Architecture Description Language AO-ADL Based on XYZ

Yanting Cao, Mei Rong, Guangquan ZhangInternational Journal of Hybrid Information Technology 2014 · DOI

Abstract

Aspect-Oriented Programming (AOP) can resolve the code tangling problem in Object-Oriented Programming (OOP) via using the technology of separation of concerns. Software architecture is becoming an important part in the phase of software design, it has the ability of helping designer to handle the structure and the complexity of large software systems, and Aspect-Oriented Software Development (AOSD) is a new paradigm proposed to manage the complexity by crosscutting concerns in the whole software life-cycle. In order to adequately specify aspect-oriented design, Aspect-Oriented Architecture Description Languages (AO-ADL) are needed. XYZ/ADL is an architecture description language which is based on temporal logic language XYZ/E. XYZ/ADL separates computation and communication into two different architecture elements—component and connector—but lacks some appropriate support to represent these crosscutting behaviors. So, XYZ/ADL must be extended to resolve the problem above by adding a kind of new elements—Aspect—and modifying the former component and connector. At last, we illustrate them on an example of the Hotel Management System (HMS) via using AO-ADL.

Introduction

In traditional software engineering, particularly within Object-Oriented Programming (OOP), certain functionalities do not align neatly with a single module or class. Features such as logging, security, and identity verification often permeate multiple components, leading to two primary architectural issues: scattering (logic repeated across modules) and tangling (core logic mixed with secondary concerns).

While Aspect-Oriented Programming (AOP) addresses these issues at the implementation level, there is a critical need to modularize these "crosscutting concerns" during the architectural design phase. This paper introduces AO-ADL, an extension of the XYZ/ADL framework, designed to provide a formal, temporal-logic-based language for specifying aspect-oriented software architectures.

The AO-ADL Framework

AO-ADL extends the existing XYZ/ADL—which is rooted in the temporal logic language XYZ/E—by introducing three primary architectural constructs:

  1. The Aspect Entity: A first-class architectural element comprising a Pointcut (defining where crosscutting occurs) and Advice (defining the behavior to be executed, such as "before," "after," or "around" a joinpoint).
  2. Aspectual Connectors: Unlike traditional connectors that only facilitate communication, aspectual connectors include "AspectRoles" to bridge standard components with Aspect entities.
  3. Joinpoints in Components: Components are modified to include explicitly defined joinpoints, allowing Aspects to "hook" into the execution flow without modifying the component's internal core logic.

By utilizing Linear Time Temporal Logic (LTTL), AO-ADL allows for the formal specification of not just the system structure, but also the precise sequence of events, enabling future formal verification of system correctness.

Case Study: Hotel Management System (HMS)

To demonstrate the efficacy of AO-ADL, the authors applied the language to a Hotel Management System (HMS). The system's requirements were first categorized into core concerns and crosscutting concerns.

Core Concerns

The core concerns represent the primary functional requirements of the system, such as managing room availability, processing bookings, and handling customer check-ins. In a traditional architecture, these modules would often be cluttered with secondary logic like database error handling or security checks.

Table 1: Core concerns and functional descriptions for the Hotel Management System.

Crosscutting Concerns

By using AO-ADL, the designers were able to extract crosscutting concerns—such as identity verification and database anomaly handling—into standalone Aspects. This separation ensures that the core components remain focused on their primary business logic, improving maintainability and traceability.

Table 2: Crosscutting concerns identified and modularized as Aspects in the HMS.

Conclusion and Future Work

AO-ADL successfully formalizes the syntax and semantics required to bring aspect-oriented principles to the architectural level. By treating Aspects as first-class citizens, the language reduces the gap between high-level design and AOP-based implementation (e.g., AspectJ).

Future research will focus on integrating AO-ADL with existing XYZ toolsets to automate the formal verification of these architectures. Additionally, the authors aim to develop automated code generation tools to further streamline the transition from architectural specification to executable code in large-scale enterprise environments.

Summary updated

Abstract

Aspect-Oriented Programming (AOP) can resolve the code tangling problem in Object-Oriented Programming (OOP) via using the technology of separation of concerns. Software architecture is becoming an important part in the phase of software design, it has the ability of helping designer to handle the structure and the complexity of large software systems, and Aspect-Oriented Software Development (AOSD) is a new paradigm proposed to manage the complexity by crosscutting concerns in the whole software life-cycle. In order to adequately specify aspect-oriented design, Aspect-Oriented Architecture Description Languages (AO-ADL) are needed. XYZ/ADL is an architecture description language which is based on temporal logic language XYZ/E. XYZ/ADL separates computation and communication into two different architecture elementscomponent and connector, but lacks some appropriate support to represent these crosscutting behaviors. So, XYZ/ADL must be extended to resolve the problem above by adding a kind of new elements -Aspect and modifying the former component and connector. At last, we illustrate them on an example of the Hotel Management System (HMS) via using AO-ADL.
BibTeX
@article{cao2014aspect,
  author = {Yanting Cao and Mei Rong and Guangquan Zhang},
  title = {{An Aspect-oriented Software Architecture Description Language AO-ADL Based on XYZ}},
  journal = {International Journal of Hybrid Information Technology},
  year = {2014},
  doi = {10.14257/ijhit.2014.7.4.31},
}
Figure