Component Model Supporting Trustworthiness-Oriented Software Evolution

Bo Ding, Huaimin Wang, Dianxi Shi, Xiao LiJournal of Software 2011

Abstract

Software trustworthiness often depends on its ability to adapt to environmental changes. When scenarios exceed design-time predictions, systems must adjust their adaptation capabilities online. This paper proposes ACOE (Adaptive Component model for Open Environment), which decomposes adaptation into sensing, decision, and execution concerns. By leveraging dynamic software architecture, ACOE allows fine-grained online reconfiguration of these concerns, enabling third-party updates to a system's adaptive logic without downtime.

The Challenge of Open Environments

In open, dynamic environments, software often encounters situations developers did not anticipate. A static adaptation strategy—where rules are hard-coded—can lead to a loss of "trustworthiness" if the environment shifts significantly. For example, a fire alarm calibrated for a cool office might fail or trigger false positives if the room is repurposed as a kitchen. The core problem is the need for online, fine-grained evolution of the adaptation mechanism itself.

The ACOE Model

The ACOE framework is built on the principle of Separation of Concerns. It breaks down the adaptation loop into modular components:

  • Context Components (Sensing): Monitor environmental data.
  • Behavior Components (Execution): Perform the system's functional tasks.
  • Policy Connectors (Decision): Encapsulate the logic (Event-Condition-Action rules) that determines how the system responds to environmental changes.
Major conceptual entities and the runtime adaptation mechanism in ACOE.

By treating the "Policy Connector" as a first-class architectural entity, ACOE makes the adaptation strategy swappable. This is managed by a runtime container (ACContainer), built on the StarBus platform, which maintains a "Runtime Architecture Model" causally connected to the running code. This Causal Connection Maintenance ensures that any modification to the model (e.g., via an AcoeADL script) is immediately reflected in the system's behavior through reflection-based reconfiguration.

Development and Runtime Lifecycle

The evolution process spans from design to deployment. Components are defined using a specialized language, UCDL (Unified Component Description Language), compiled into packages, and stored in a repository. The container then instantiates these components based on an AcoeADL-based application description.

The ACOE component skeleton and the end-to-end development-to-runtime process.

The component skeleton (shown above) includes built-in support for reflection and proxy dependencies. These features allow the container to intercept calls and safely migrate state when a component or connector is replaced. This "surgical" update capability is what distinguishes ACOE from coarse-grained evolution methods that require restarting entire subsystems.

Evaluation and Results

The authors validated ACOE using a simulated fire alarm system deployed on iMote2 sensor nodes and PDA-based displays. They successfully demonstrated that when a room's environmental profile changed (e.g., increased ambient temperature due to kitchen activities), they could deploy a new policy connector online to adjust alarm thresholds. This successfully suppressed false positives without interrupting the system's operation.

Performance overhead was measured to be minimal:

  • PC (Windows/Linux): 2-4 ms per adaptation cycle.
  • Mobile (WinCE): 8-12 ms per cycle.

This latency is considered acceptable for most high-level software adaptation scenarios where environmental changes occur over seconds or minutes, rather than microseconds.

Conclusion

ACOE provides a flexible architecture for software that must evolve its own adaptation logic. By modularizing sensing, decision, and execution, it allows for surgical updates to a system's behavior. Future research will focus on handling more complex context models and implementing formal verification to ensure the safety of online reconfigurations.

Summary updated

BibTeX
@article{ding2011component,
  author = {Bo Ding and Huaimin Wang and Dianxi Shi and Xiao Li},
  title = {{Component Model Supporting Trustworthiness-Oriented Software Evolution}},
  journal = {Journal of Software},
  year = {2011},
  doi = {10.3724/sp.j.1001.2011.03813},
}
Figure