a4 wsn hot

20
A4WSN - HOT 1° Part

Upload: giacomo-lamonaco

Post on 19-Jul-2015

114 views

Category:

Entertainment & Humor


0 download

TRANSCRIPT

A4WSN - HOT1° Part

What ‘s A4WSN ?

As you know, me4awsn is composed of

several meta-models:

O SAML

O NODEML

O ENVML

O WEAVING MetaModels

MAPPING between

SA and NODE

DEPLOYMENT between

Node and Env

ME4AWSN MetaModels

ME4AWSN Weaving MetaModels

What ‘s A4WSN ?

What if i want to manage differents models together, in order to have a unique model rapresenting the whole architecture ?

I have different models conform to each related metamodels (e.g. a SA model is conform SAML MetaModel) …

… In this case, i haven’t a cleanly unique view of the whole architecture

What’s A4WSN ? Solution

Our solution is to combine all the

metamodels previously seen, by defining a

new metamodel:

The A4WSN MetaModel

A4WSN: Metamodel

O The 3 metamodels remain the same (are

simply included as sub packages)

A4WSN: Metamodel

O The weaving models are modified: they

don’t include the Weaving Model part

A4WSN: Metamodel

O The specification parts allows to refer to

the various subpackages, giving an

organization of the whole architecture

A4WSN Metamodel

O Ok, but now how can i use it ?

O Have i to rewrite a new model, conformant

to the A4WSN metamodel?

.. Obviously not!

O We have defined an ATL

transformation, that aims to integrate the 5

artifacts

A4WSN Transformation

wsnmeTOa4wsn.atl

A4WSN - HOT

O How to write this transformation?

By hands .. No

O How to solve it? A solution can be an

Higher Order Transformation

To big !

(Co)Evolution Problem !

A4WSN-Hot.atl

SAML

ENVML

NODEML

MAPPING

DEPLOYMENT

Transformation.ecore

outp

ut

Using the AMMA platform

Extracting Model

On the Transformation.ecore we select

A4WSN - InAction

O Now we can play the video showing how

to interact with the tool

VIDEO

A4WSN HOT – In DetailO For the first three metamodels, we have

generated rules the simply map elements form

the source metamodel toward the A4WSN

metamodels

Figure : The ComponentRule of Component in SAML

A4WSN HOT – In Detail

O In case of weaving models, we’ve some

problems

A4WSN HOT – In DetailO In the weaving models we don’t have the

type of referred element

Annotation

A4WSN HOT – In Detail

O In this case, we’ve to resolve weaving

reference with ‘real’ pointer

O You can find a different solution for the

collection case

The End

Thanks for yourattention