Skip to main content
QUICK REVIEW

[Paper Review] Generating Domain-Specific Transformation Languages for Component & Connector Architecture Descriptions

Lars Hermerschmidt, Katrin Hölldobler|arXiv (Cornell University)|Oct 1, 2015
Model-Driven Software Engineering TechniquesComputer Science15 references9 citations
TL;DR

This paper presents a framework that automatically generates domain-specific transformation languages (DSTLs) for component-and-connector (C&C) architecture description languages (ADLs) from their grammars. By leveraging the concrete syntax of the base ADL, the framework enables concise, human-readable model transformations that are intuitive for domain experts, significantly reducing the effort and error-proneness of manual AST-based programming or learning generic transformation languages.

ABSTRACT

Component-based software engineering (CBSE) decomposes complex systems into reusable components. Model-driven engineering (MDE) aims to abstract from complexities by lifting abstract models to primary development artifacts. Component and connector architecture description languages (ADLs) combine CBSE and MDE to describe software systems as hierarchies of component models. Using models as development artifacts is accompanied with the need to evolve, maintain and refactor those models, which can be achieved by model transformations. Domain-specific transformation languages (DSTLs) are tailored to a specific modeling language as the modeling language's concrete syntax is used to describe transformations. To automate the development of DSTLs for ADLs, we present a framework to systematically derive such languages from domain-specific C&C language grammars. These DSTLs enable to describe such model transformations concisely in vocabulary of the underlying ADL. These domain-specific transformations are better comprehensible to ADL experts than generic transformations.

Motivation & Objective

  • To address the high cognitive and maintenance cost of manually implementing model transformations for component-and-connector (C&C) ADLs.
  • To reduce the learning barrier for domain experts by enabling transformations in the familiar concrete syntax of the ADL.
  • To automate the generation of DSTLs from DSL grammars, avoiding the need for manual DSL-like development of transformation languages.
  • To support complex transformations through a control flow language that composes rule-based transformations while preserving ADL semantics.

Proposed method

  • The framework takes the context-free grammar of a C&C ADL (e.g., MontiArc or MontiSecArc) as input to generate a corresponding DSTL grammar.
  • It uses MontiCore’s language workbench to parse the DSL grammar and generate transformation rules in object diagram notation (OD), which represent left-hand side (LHS) and right-hand side (RHS) patterns.
  • A generator (OD2J-Gen) translates object diagrams into Java code for execution, enabling integration with model processing pipelines.
  • The framework supports declarative transformation rules with schema variables (black-box and white-box variants) to match and modify model elements based on structural and semantic constraints.
  • It integrates a control flow language to compose multiple transformation rules with strategies like loops and conditionals, enabling complex, imperative-style transformation modules.
  • The approach ensures type safety by reusing nonterminal names from the ADL’s abstract syntax within the DSTL’s concrete syntax.

Experimental results

Research questions

  • RQ1Can a systematic, grammar-driven approach generate DSTLs that retain the concrete syntax of a C&C ADL for intuitive model transformations?
  • RQ2How can domain experts author transformations without learning a new, generic transformation language or manipulating low-level ASTs?
  • RQ3To what extent can the resulting DSTLs express complex architectural refactorings and code generation tasks in a concise and comprehensible way?
  • RQ4How can type safety and structural correctness be preserved when generating DSTLs from DSL grammars?

Key findings

  • The framework successfully generates DSTLs that allow transformations to be expressed using the concrete syntax of the base ADL, making them more comprehensible to domain experts than generic transformation languages.
  • The generated DSTLs enable concise and precise specification of model transformations, such as adding monitors to components or refactoring insecure access control patterns.
  • The approach reduces the risk of errors associated with low-level AST manipulation by abstracting away the need to write imperative code against the AST API.
  • The control flow language allows complex transformation sequences to be composed, supporting loops and conditional application of rules, which enhances expressiveness.
  • The framework was successfully applied to MontiArc and MontiSecArc, demonstrating its viability for real-world C&C ADLs with security extensions.
  • The use of schema variables (black-box and white-box) enables pattern matching and semantic checks (e.g., trust level comparisons) within transformation rules, ensuring correctness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.