adaptive transformation pattern for chitectural models architectural models

23
1 s Adaptive Transformation Pattern for chitectural Models Architectural Models on Pattern for Arc Diego Rodríguez-Gracia, Javier Criado , Luis Iribarne, Nicolás Padilla Applied Computing Group tive Transformatio Applied Computing Group University of Almería, Spain Cristina Vicente-Chicote Adapt Cristina Vicente Chicote Department of Information Communication Technologies Technical University of Cartagena, Spain Applied Computing Group GRUPO DE INFORMÁTICA APLICADA UNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos 5-7 de septiembre de 2011 Applied Computing Group

Upload: applied-computing-group

Post on 20-Jun-2015

260 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Adaptive Transformation Pattern for chitectural Models Architectural Models

1

s

Adaptive Transformation Pattern for

chite

ctur

alM

odel

s

Architectural Models

onP

atte

rnfo

rArc

Diego Rodríguez-Gracia, Javier Criado, Luis Iribarne, Nicolás PadillaApplied Computing Group

tive

Tran

sfor

mat

io Applied Computing GroupUniversity of Almería, Spain

Cristina Vicente-Chicote

Adap

t Cristina Vicente ChicoteDepartment of Information Communication Technologies

Technical University of Cartagena, Spain

Applied Computing Group

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Applied Computing Group

Page 2: Adaptive Transformation Pattern for chitectural Models Architectural Models

2

Indexs

• Context

chite

ctur

alM

odel

s

• Our goal

• Our proposal

onP

atte

rnfo

rArc Our proposal

o Transformation Pattern

o Transformation Schema

tive

Tran

sfor

mat

io o Transformation Schema

o Transformation Rules

R l S l i

Adap

t o Rule Selection

o Rule Transformation

• Conclusions

• Future work

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 3: Adaptive Transformation Pattern for chitectural Models Architectural Models

3

Contexts Meta metamodel

chite

ctur

alM

odel

s Meta-metamodel

onP

atte

rnfo

rArc

Metamodel A Metamodel BMetamodel T

tive

Tran

sfor

mat

io

Model A Model BModel TModel T

Adap

t Model A Model BModel T

rules

Metamodel A and

Metamodel B could be or not the same

A PRIORI

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

could be or not the same

Page 4: Adaptive Transformation Pattern for chitectural Models Architectural Models

4

Indexs

• Context

chite

ctur

alM

odel

s

• Our goal

• Our proposal

onP

atte

rnfo

rArc Our proposal

o Transformation Pattern

o Transformation Schema

tive

Tran

sfor

mat

io o Transformation Schema

o Transformation Rules

R l S l i

Adap

t o Rule Selection

o Rule Transformation

• Conclusions

• Future work

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 5: Adaptive Transformation Pattern for chitectural Models Architectural Models

5

Our goalsg

chite

ctur

alM

odel

s

ArchitecturalMetamodel

onP

atte

rnfo

rArc

Architectural ArchitecturalM2M ArchitecturalM2M

tive

Tran

sfor

mat

io ArchitecturalModel A

ArchitecturalModel B

M2M

rules

ArchitecturalModel C

M2M

rules

Adap

t

Adaptive T f iTransformation

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 6: Adaptive Transformation Pattern for chitectural Models Architectural Models

6

Indexs

• Context

chite

ctur

alM

odel

s

• Our goal

• Our proposal

onP

atte

rnfo

rArc Our proposal

o Transformation Pattern

o Transformation Schema

tive

Tran

sfor

mat

io o Transformation Schema

o Transformation Rules

R l S l i

Adap

t o Rule Selection

o Rule Transformation

• Conclusions

• Future work

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 7: Adaptive Transformation Pattern for chitectural Models Architectural Models

7

Our proposals

- Adaptation of architectural models

p pch

itect

ural

Mod

els

- @Runtime

- Using M2M transformations

onP

atte

rnfo

rArc

- Transformations are also adapted at runtime.

- Model Transformations not prepared a priori

tive

Tran

sfor

mat

io

- M2M is dynamically composed from a rule model

Adap

t

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 8: Adaptive Transformation Pattern for chitectural Models Architectural Models

8

Methodologys

- Adaptive Model Transformation:

f i d d l

gych

itect

ural

Mod

els • M2M transformation. Input and output models are AM

(Architectural Models) • M2M process enables the evolution and adaptation of

onP

atte

rnfo

rArc M2M process enables the evolution and adaptation of

architectural models• M2M process behaviour is described by its rules

tive

Tran

sfor

mat

io

- Build a Rule Repository

Adap

t

- Design a Rule Selection process as a M2M• This selection process can generate different rule subsets

- Develop a Rule Transformation process as a M2T• This process generates the model transformation

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

- Build a pattern/template for modeling our adaptation schema

Page 9: Adaptive Transformation Pattern for chitectural Models Architectural Models

9

Transformation Patterns

- Model the structure and composition of our transformation schema elements

chite

ctur

alM

odel

s elements.

- Possibility of changing our adaptation schema

El

onP

atte

rnfo

rArc - Elements:

• TransformationSchema

tive

Tran

sfor

mat

io

• Metamodel

• Model

Adap

t

• Transformations:

M2M

M2T

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 10: Adaptive Transformation Pattern for chitectural Models Architectural Models

10

<<metamodel>>

RMMconforms_to conforms_to

Transformation Schema: An instance of Transformation Patterns

<<model>>

RRM(repository)

conforms_to

1: source 7: source

chite

ctur

alM

odel

s

<<model>>

RMi

<<model>>

RMi+1

<<transformation>>

RuleSelection(M2M)

<<transformation>>

RuleSelection(M2M)

2: target3: source

8: target9: source

onP

atte

rnfo

rArc <<transformation>>

RuleTransformation(M2T)

<<transformation>>

RuleTransformation(M2T)

<<transformation>> <<transformation>><<model>> <<model>>

4: target7: source

10: target1: source

state i+1state i

tive

Tran

sfor

mat

io ModelTransformationi(M2M)

ModelTransformationi+1(M2M)

<<metamodel>>

AMM

<<model>>

AMi

<<model>>

AMi+1

conforms_to conforms_to

5: source 6: target 11: source

Adap

t AMM

1º Rule Selection: is obtained as an instance of the M2M conceptInput: the repository model (RRM) and the initial architectural model (AMi)Output: the selected rules model (RMi)

2º Rule Transformation: is obtained as an instance of the M2T conceptInput: the rule model (RMi)Output: a new transformation for architectural models at runtime (ModelTransformationi)

3º Model Transformation: is obtained as an instance of the M2M concept

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

pInput: the initial architectural model (AMi)Output: a new architectural model at runtime (AMi+1)

Page 11: Adaptive Transformation Pattern for chitectural Models Architectural Models

11

Transformation Ruless

Metamodel for transformation rules

chite

ctur

alM

odel

s

Rule Repository Model (RRM)

onP

atte

rnfo

rArc

Selected rules model (RMi)

tive

Tran

sfor

mat

io

The transformation behaviour is defined in the rules:

U i Id ifi h l

Adap

t - rule_name: Unique. Identifies the rule.

- purpose: Indicates the purpose of the rule.

- is_priority: Boolean. It its value is true, the rule must be selected.

- weight: The selection process uses this attribute to select the rules.

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 12: Adaptive Transformation Pattern for chitectural Models Architectural Models

12

Rule Selections

Instance of the M2M concept

chite

ctur

alM

odel

s

The process starts when the system detects

onP

atte

rnfo

rArc

p ythat it is necessary an andaptation

tive

Tran

sfor

mat

io Input:

- Architectural Model (AMi)- Rule Repository Model

Adap

t Rule Repository Model (RRM)

Output:

- Selected rules model (RMi)

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 13: Adaptive Transformation Pattern for chitectural Models Architectural Models

13

Rule Selections

Example:

Wh f h i ib f h AM i h d ( ) h

chite

ctur

alM

odel

s When state of the running attribute of the AMi is changed (Launcher.running =true), the RuleSelection process is executed.

onP

atte

rnfo

rArc

We have an Architectural Model (AMi) where Launcher.purpose = ‘InsertComponent’.Rule repository model (RRM):

tive

Tran

sfor

mat

ioAd

apt

The selected rule model (RMi) is generated:

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 14: Adaptive Transformation Pattern for chitectural Models Architectural Models

14

Rule Transformations

Instance of the M2T concept

chite

ctur

alM

odel

s

The process starts after RuleSelection

Input:

onP

atte

rnfo

rArc

p

- Selected rules model (RMi) Output:

tive

Tran

sfor

mat

io

- Architectural model transformation(ModelTransformationi)

Adap

t

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 15: Adaptive Transformation Pattern for chitectural Models Architectural Models

15

Rule Transformations

RMi

chite

ctur

alM

odel

s

RuleTransformation

onP

atte

rnfo

rArc

tive

Tran

sfor

mat

ioAd

apt

ModelTransformationi

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 16: Adaptive Transformation Pattern for chitectural Models Architectural Models

16

Rule Transformations

RuleTransformation

chite

ctur

alM

odel

s

RMi

onP

atte

rnfo

rArc

RMi

tive

Tran

sfor

mat

io

ModelTransformationi

Adap

t

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 17: Adaptive Transformation Pattern for chitectural Models Architectural Models

17

Indexs

• Context

chite

ctur

alM

odel

s

• Our goal

• Our proposal

onP

atte

rnfo

rArc Our proposal

o Transformation Pattern

o Transformation Schema

tive

Tran

sfor

mat

io o Transformation Schema

o Transformation Rules

R l S l i

Adap

t o Rule Selection

o Rule Transformation

• Conclusions

• Future work

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 18: Adaptive Transformation Pattern for chitectural Models Architectural Models

18

Conclusionss

• Adaptive transformation for architectural models at

chite

ctur

alM

odel

s

runtime

• Transformation pattern/template for adaptation schema

onP

atte

rnfo

rArc • Transformation pattern/template for adaptation schema

• Adaptation schema is also changeable and adaptable

tive

Tran

sfor

mat

io p g p

• High degree of adaptability

Adap

t

• All adaptation elements are based on MDE• Models (architectures rule repository selected rules)• Models (architectures, rule repository, selected rules)• M2M (RuleSelection, ModelTransformation)• M2T (RuleTransformation)

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

( )

Page 19: Adaptive Transformation Pattern for chitectural Models Architectural Models

19

Indexs

• Context

chite

ctur

alM

odel

s

• Our goal

• Our proposal

onP

atte

rnfo

rArc Our proposal

o Transformation Pattern

o Transformation Schema

tive

Tran

sfor

mat

io o Transformation Schema

o Transformation Rules

R l S l i

Adap

t o Rule Selection

o Rule Transformation

• Conclusions

• Future work

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 20: Adaptive Transformation Pattern for chitectural Models Architectural Models

20<<metamodel>>

RMMconforms_to conforms_to

confo ms to PHASE III

Future Works

conforms_to PHASE III

source

decision-making

chite

ctur

alM

odel

s

<<model>>

RRM(repository)1: source

12: target

11: source

4: target

3: source

target

onP

atte

rnfo

rArc

PHASE II<<transformation>>

RepositoryUpdate (M2M)

<<transformation>>

RepositoryUpdate (M2M)

tive

Tran

sfor

mat

io

<<model>> <<model>><<transformation>>

RuleSelection<<transformation>>

RuleSelection

9: source3: source 11: source

Adap

t

RMi RMi+1RuleSelection

(M2M)RuleSelection

(M2M)

<<transformation>>

RuleTransformation(M2T)

<<transformation>>

RuleTransformation(M2T)

2: target5: source

10: target13: source

state i state i+1

<<transformation>>

ModelTransformationi(M2M)

<<transformation>>

ModelTransformationi+1(M2M)

<<model>>

AMi

<<model>>

AMi+1

6: target

7: source

8: target

9: source14: target

15: source

1: source

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

<<metamodel>>

AMMconforms_to conforms_to

Page 21: Adaptive Transformation Pattern for chitectural Models Architectural Models

21

Adaptive Transformation Pattern for s

Architectural Models

chite

ctur

alM

odel

s

Diego Rodríguez-Gracia, Javier Criado, Luis Iribarne, Nicolás Padilla

onP

atte

rnfo

rArc Applied Computing Group

University of Almería, Spain

tive

Tran

sfor

mat

io

Cristina Vicente-ChicoteDepartment of Information Communication Technologies

Technical University of Cartagena, Spain

Adap

t y f g , p

Una Metodología para la Recuperación y Explotación de Información Medioambientalp(TIN2010-15588)

Desarrollo de un Agente Web Inteligente de I f ió M di bi l (TIC 6114)

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Información Medioambiental (TIC-6114)

Page 22: Adaptive Transformation Pattern for chitectural Models Architectural Models

22

Main Rules y Lazy Ruless

chite

ctur

alM

odel

son

Pat

tern

forA

rctiv

eTr

ansf

orm

atio

Adap

t

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011

Page 23: Adaptive Transformation Pattern for chitectural Models Architectural Models

23

Helper Ruless

chite

ctur

alM

odel

son

Pat

tern

forA

rctiv

eTr

ansf

orm

atio

Adap

t

GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA XVI Jornadas de Ingeniería del Software y Bases de Datos

5-7 de septiembre de 2011