Model Transformation

Generating System Models

 Overview

A key idea in the BIP methodology is to generate the system models (i.e. implementations) from the application model of the software and a model of the target platform by using a set of correct-by-construction model transformations. These transformations preserve functional properties. Moreover, they take into account extra-functional constraints.

We consider three types of transformations:


 Architecture Optimization

These transformations take BIP models and transform them into functionally equivalent BIP models with different architectures. Such transformations have already been implemented in the BIP2BIP tool [1] [2]. They allow in particular to generate from a hierarchical model an equivalent flat model or a single atomic component by composing the behavior of the constituent components. Flat models have been proven optimal for implementation on single processor platforms. We will study transformations for deriving optimal implementations with respect to given execution platform.

The transformation from a composite component to flat model is fully automated and implemented through three steps:

  • Component flattening which replaces the hierarchy on components by a set of hierarchically structured connectors applied on atomic components;
  • Connector flattening which computes for each hierarchically structured connector an equivalent flat connector;
  • Component composition which composes atomic components to get an atomic component.

Using such a transformation allows to combine advantages of component-based descriptions such as clarity and reuse with efficient implementation. The generated code is readable and by-construction functionally equivalent to the component-based model.

contact: Marc Poulhiès


 Distributed Implementation

Coordination in BIP is achieved through multiparty interactions and scheduling by using dynamic priorities. The associated semantics is defined on a global state model. This makes reasoning about systems easy, however, it is harder to obtain distributed implementations where the primitives available for communication and coordination are less powerful. For example, the implementation of a multiparty interaction as an asynchronous Send/Receive protocol can be done: either in a decentralized manner by adding to each one of the components involved in the interaction a controller; or in a centralized manner by using a single controller coordinating the behavior of the components. Such transformations have been presented in [3] [4]. In general, we reuse and adapt existing distributed algorithms for realizing multiparty interactions or solving related problems. We study their correctness in this particular context by developing composability arguments e.g, non-interference of the algorithms with the functional behavior of the system. Finally, we assess their performance with respect to different criteria such as the degree of parallelism or the overhead for coordination.

More precisely, our method utilizes the following sequence of transformations preserving observational equivalence: First, we transform the given BIP model into another BIP model that (1) operates in partial-state semantics, and (2) expresses multi-party interactions in terms of asynchronous message passing (Send/Receive primitives). Moreover, the target BIP model is structured in three layers:

  • The components layer consists of a transformation of behavioral components in the original model. This layer send offers (enable ports), wait for noti-cations and execute local computations;
  • The interaction protocol layer detects enabledness of interactions of the original model and executes them after resolving conflicts either locally or by the help of the third layer. This layer consists of a set of components, each hosting a user-defined subset of interactions (Interactions Parition) from the original BIP model;
  • The conflict resolution protocol layer resolves conflicts requested by the interaction protocol. The conflict resolution protocol implements a committee coordination algorithm and our design allows employing any such algorithm. We, in particular, consider three committee coordination algorithms: (1) a fully centralized algorithm, (2) a token-based distributed algorithm, and (3) an algorithm based on reduction to distributed dining philosophers.

Then, by using the Send/Receive code generator we transform the obtained Send/Receive BIP model into C/C++ code that employs either TCP sockets, MPI or shared memory for communication.

contact: Jean Quilbeuf


 Memory management

BIP adopts a private memory model which is safe for programming but may lead to inefficient implementations. The aim is to realize memory transformation from private to shared memory and conversely. We are also interested in transformations leading to mixed solutions combining private and shared memory and determining tradeoffs. For an example, see [5].

contact: Marius Bozga

[1] Marius Bozga, Mohamad Jaber and Joseph Sifakis. Source-to-source architecture transformation for performance optimization in BIP. In Symposium on Industrial Embedded Systems SIES 2009 Proceedings pages 152-160

[2] Marius Bozga, Mohamad Jaber and Joseph Sifakis. Source-to-source architecture transformation for performance optimization in BIP. In IEEE Transactions on Industrial Informatics 2010 Volume 6, Number 4

[3] B. Bonakdarpour, M. Bozga, M. Jaber, J. Quilbeuf and J. Sifakis. Automated Conflict-free distributed implementation of component-based models In Symposium on Industrial Embedded Systems SIES’10 Proceedings

[4] B. Bonakdarpour, M. Bozga, M. Jaber, J.Quilbeuf, J. Sifakis From High-Level Component-Based Models to Distributed Implementations In Embedded Software EMSOFT’10 Proceedings

[5] M. Bozga and E. Sifakis. Issues on Memory-Management for Component-Based Systems In Exploiting Concurrency Efficiently and Correctly EC^2 2010 Workshop.


Contact | Site Map | Site powered by SPIP 4.4.33 + AHUNTSIC [CC License]

info visites 57973825