Abstract
Self-adaptive systems are capable of adjusting their behavior to cope with the changes in environment and itself. These changes may cause runtime uncertainty, which refers to the system state of failing to achieve appropriate reconfigurations. However, it is often infeasible to exhaustively anticipate all the changes. Thus, providing dynamic adaptation mechanisms for mitigating runtime uncertainty becomes a big challenge. This paper suggests solving this challenge at requirements phase by presenting REDAPT, short for REquirement-Driven adAPTation. We propose an adaptive goal model (AGM) by introducing adaptive elements, specify dynamic properties of AGM by providing logic based grammar, derive adaptation mechanisms with AGM specifications and achieve adaptation by monitoring variables, diagnosing requirements violations, determining reconfigurations and execution. Our approach is demonstrated with an example from the Intelligent Transportation System domain and evaluated through a series of simulation experiments.
Introduction
Self-adaptive systems, such as autonomous vehicles or smart grids, are designed to handle environmental and internal shifts. However, developers face a critical "runtime uncertainty" problem: it is impossible to predict every possible environmental change or hardware glitch during the design phase. Traditional Requirements Engineering (RE) often treats requirements as static documents, leading to a disconnect between high-level goals (e.g., "Ensure safety") and low-level system code when unforeseen situations occur. This paper introduces REDAPT (REquirement-Driven adAPTation), a framework designed to bridge this gap by keeping requirements active as runtime entities that guide system behavior.
The REDAPT Framework
The REDAPT framework operates across three integrated layers to manage system adaptation dynamically:
- Problem Layer: Identifies the boundary between the system and its environment to capture sources of uncertainty, such as fluctuating traffic flow or sensor noise.
- Model Layer: The core of the framework, which introduces the Adaptive Goal Model (AGM). Unlike standard goal models, the AGM includes adaptive elements and uses a first-order linear-time temporal logic (LTL) based grammar to define how goals are initialized and fulfilled.
- Adaptation Layer: Implements the classic MAPE loop (Monitor, Analyze, Plan, Execute). It tracks variables defined in the AGM, diagnoses violations by matching runtime data against formal specifications, and executes either parametric or structural adaptations.
Adaptive Goal Modeling and Uncertainty
A key insight of REDAPT is the distinction between context uncertainty (external environment) and component uncertainty (internal issues). By maintaining the AGM at runtime, the system can reason about why a failure is happening and classify violations into four types based on whether they affect Functional Requirements (FR) or Non-Functional Requirements (NFR).
As shown in the case study of a Highway-Rail Control System (HRCS), the AGM structures high-level objectives like "Dispatch Trains and Control Gates" into specific adaptive tasks ($At_1, At_2$). This structure allows the system to perform utility-based trade-offs, particularly for NFRs like safety and efficiency, ensuring a Pareto optimal balance during runtime reconfigurations.
Evaluation and Results
The framework was evaluated using a custom-built simulation of the HRCS in AnyLogic. The experiments demonstrated REDAPT's ability to mitigate runtime issues effectively:
- NFR Mitigation: When environmental illuminance dropped below 20lx, increasing safety risks, the system successfully tuned gate opening/closing times to maintain a safety utility score above 0.7.
- FR Mitigation: In high-traffic scenarios where requirements were violated (e.g., vehicle passing rates), the system detected the violation and dynamically increased the train dispatch interval ($t_{dispatch}$) from 5 to 6 minutes. This restored the passing rate to over 87%, satisfying the functional requirement.
Conclusion and Future Work
REDAPT provides a robust framework for connecting high-level requirements to runtime adaptation mechanisms. While effective, the authors identify several areas for future research, including the development of more sophisticated behavior models for complex transitions, the incorporation of runtime verification to prevent secondary problems during adaptation, and addressing the computational scalability of reasoning over complex goal models in massive real-time systems.
Summary updated