VIATRA (an acronym derived from "VIrtual And TRAnsformation framework") is an open-source model transformation framework based on the Eclipse Modeling Framework (EMF) and hosted by the Eclipse Foundation.
Overview
VIATRA supports the development of model transformations with a specific focus on event-driven, reactive transformations—that is, rule-based scenarios in which transformations occur as reactions to certain external changes in the underlying model. Building upon incremental query support for locating patterns and changes in the model, VIATRA offers a language (the VIATRA Query Language, or VQL) for defining transformations, along with a reactive transformation engine to execute them upon changes in the model.
Functionality
VIATRA provides several main services:
- Incremental query engine: A graph-pattern-based language to specify and execute model queries efficiently.
- Transformation DSL: An internal domain-specific language built over the Xtend language to specify both batch and event-driven, reactive transformations.
- Model obfuscator: A tool to remove sensitive information from a confidential model (for example, to create bug reports).
Approach
VIATRA relies on a mathematically precise, rule-based specification formalism known as graph transformation. The basic concept in defining model transformations within VIATRA is the graph pattern—a collection of model elements arranged into a structure that fulfills additional constraints. Patterns can be matched on model instances, and upon successful matching, elementary model manipulation is specified by graph transformation rules. Similar to OCL, graph transformation rules describe pre- and postconditions, but they are guaranteed to be executable, which constitutes a main conceptual difference.
As reactive, event-driven transformations are a primary focus, VIATRA includes a rule execution engine that monitors changes (interpreted as events) in the model and fires a rule whenever a change leads to the fulfillment of that rule's precondition.
Origins and History
The current VIATRA project is a full rewrite of the earlier VIATRA2 framework, offering full compatibility and support for EMF models. Traditional application areas of VIATRA2—dating back as early as 1998—included the analysis of system models from various application areas (safety-critical and embedded systems, e-business applications, middleware, service-oriented architecture) described using modeling languages such as SysML, UML, and BPMN during a model-driven systems engineering process. This analysis typically encompassed verification and validation, testing, safety and security analysis, and the early assessment of non-functional characteristics.
Application Domains
VIATRA has been used in both industrial and academic contexts. Earlier versions were used for developing and verifying critical embedded systems in European research projects such as DECOS, MOGENTES, INDEXYS, and SecureChange. As a major industrial application, VIATRA serves as the underlying model querying and transformation engine of the IncQuery Suite, making it a key technical component in industrial collaborations around model-based systems engineering in domains such as aerospace, manufacturing, industrial automation, and automotive. While well integrated with Eclipse Modeling tools, VIATRA also functions outside the Eclipse environment, as demonstrated by the IncA project using the JetBrains MPS platform.
See Also
- Model-Driven Engineering (MDE)
- Model-Driven Architecture (MDA)
- Domain-Specific Language (DSL)
- Model Transformation Language (MTL)
- MOF Queries/Views/Transformations (MOF QVT)
- ATLAS Transformation Language (ATL)
References
- Ujhelyi, Zoltán; Bergmann, Gábor; Hegedüs, Ábel; Horváth, Ákos; Izsó, Benedek; Ráth, István; Szatmári, Zoltán; Varró, Dániel (2015). "EMF-IncQuery: An integrated development environment for live model queries." Science of Computer Programming, 98: 80–99.
- Varró, Dániel; Bergmann, Gábor; Hegedüs, Ábel; Horváth, Ákos; Ráth, István; Ujhelyi, Zoltán (2016). "Road to a reactive and incremental model transformation platform: three generations of the VIATRA framework." Software & Systems Modeling, 15(3): 609–629.