CHARIOT: a domain specific language for extensible cyber-physical systems

Subhav M. Pradhan, Abhishek Dubey, Aniruddha S. Gokhale, Martin LehoferDSM@SPLASH 2015

TL;DR

This paper introduces CHARIOT, a domain-specific language (DSL) designed to tackle the complexities of building extensible Cyber-Physical Systems (CPS). CHARIOT enables developers to create resilient CPS applications while abstracting away the underlying communication middleware and explicitly modeling system goals and objectives for self-reconfiguration.

What Problem Does This Paper Address?

The increasing ubiquity of wireless technologies and edge computing is driving a shift from traditional, monolithic CPS to more dynamic, open, and extensible systems. These next-generation CPS, like fractionated spacecraft or smart cities, involve aggregating and sharing resources across multiple domains and applications. However, realizing these systems presents significant challenges:

  • Software Heterogeneity: Extensible CPS often rely on diverse communication middleware (e.g., DDS, MQTT, AMQP) to connect their components. Existing approaches tightly couple applications to specific middleware, requiring extensive rewrites when middleware changes.
  • Resilience Requirements: These systems must be highly resilient to failures and environmental changes, as they may be remotely deployed with limited human intervention. This necessitates robust self-reconfiguration mechanisms that can adapt to faults and ensure system goals are met.

The paper aims to address these design-time challenges by providing a language that supports middleware-agnostic development and explicit modeling of resilience logic.

Methods

The core of the paper is the CHARIOT DSL, a textual language developed using Xtext. It's built upon lessons learned from previous DSL efforts for CPS and focuses on two key areas:

  • Middleware Agnosticism (Addressing Challenge 1): CHARIOT enforces a strict separation of concerns between computation logic and communication logic within application components. It introduces a universal component model with well-defined ports (client, server, buffered receiver, sampling receiver) that abstract away the underlying middleware. Developers model interactions using these generic ports and data types, which are then mapped to specific middleware at runtime.
  • Resilience Modeling (Addressing Challenge 2): CHARIOT allows application designers to explicitly model a system's "configuration space." This space encompasses available resources, known faults, system goals, objectives, components, their deployment, and configurations. By defining this configuration space at design-time, the system can use it at runtime to support self-reconfiguration mechanisms, enabling autonomous fault tolerance.

The DSL defines several modeling concepts: Systems (satisfying a goal via objectives), Objectives (logical groups of functionalities), Functionalities (provided by components), Components (the building blocks of applications), and Platform Interactions (artifacts for interacting with platform resources).

Datasets

Not discussed in the paper. The paper focuses on a DSL and its application to a motivating scenario (fractionated spacecraft), rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Separation of Concerns is Crucial for Extensibility: The paper strongly advocates for decoupling computation from communication. This allows applications to be designed once and deployed with various middleware, significantly reducing development and maintenance costs for complex, evolving CPS.
  • Explicit Resilience Modeling is Key to Autonomy: By allowing designers to model the system's "configuration space" and its potential states, CHARIOT provides the necessary information for runtime self-reconfiguration. This moves beyond static deployment plans to dynamic adaptation.
  • Domain-Specific Languages Offer Targeted Solutions: CHARIOT demonstrates how a DSL can effectively address specific challenges in a domain (CPS) that general-purpose languages might struggle with, by providing tailored abstractions and modeling constructs.

Key Results

The paper presents the CHARIOT DSL as a solution to the identified challenges. While quantitative results are not presented, the key qualitative findings are:

  • Middleware Agnosticism Achieved: The DSL's component model and port abstractions allow application developers to design interactions without being tied to specific middleware.
  • Resilience Modeling Supported: The DSL enables the explicit modeling of system goals, objectives, and configurations, which are essential for runtime self-reconfiguration.
  • Demonstrated on a Motivating Scenario: The concepts are illustrated using a fractionated spacecraft example, showing how system goals, objectives (like maintaining orbit and imaging), and component deployments are modeled.

Limitations and Future Work

Limitations:

  • The paper focuses on design-time challenges and presents the DSL as a solution. The runtime implementation and its effectiveness are described as ongoing work.
  • Quantitative evaluation of the DSL's impact on development time, performance, or resilience is not provided.

Future Work:

  • Runtime Implementation: Developing a complete end-to-end system, including a model interpreter and a comprehensive runtime solution with a universal component model and resilience infrastructure.
  • Formal Verification: Using model checkers to perform formal verification of system models at design-time.
  • Enhanced Resilience: Supporting redundancy patterns to further enhance runtime resilience mechanisms.

Summary updated

BibTeX
@inproceedings{pradhan2015chariot,
  author = {Subhav M. Pradhan and Abhishek Dubey and Aniruddha S. Gokhale and Martin Lehofer},
  title = {{CHARIOT: a domain specific language for extensible cyber-physical systems}},
  booktitle = {DSM@SPLASH},
  year = {2015},
  doi = {10.1145/2846696.2846708},
}
Figure