icsoft'2012: composing model transformations at runtime: an approach for adapting...
TRANSCRIPT
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
1
ICSOFT 201224-27 de julio de 2012
Composing Model Transformations at Runtime:
an approach for adapting Component-based User
InterfacesDiego Rodríguez-Gracia, Javier Criado, Luis Iribarne,
Nicolás PadillaApplied Computing Group
University of Almería, Spain
Cristina Vicente-ChicoteDepartment of Information Communication Technologies
Technical University of Cartagena, SpainApplied Computing Group
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
2
ICSOFT 201224-27 de julio de 2012
Index• Our goal• Our proposalo Transformation Patterno Transformation Schemao Transformation Ruleso Rule Selection o Rule Transformation
• Conclusions• Future work
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
3
ICSOFT 201224-27 de julio de 2012
Our goal- The main objective of our proposal is to achieve the
adaptation of user interfaces at runtime.
Architectural Model 1
Chat
Chat
GUIVideo Audio
GUI
Architectural Model 2
AudioVideoAdaptationProcess
- User interfaces are described by means of architectural models that contain the specification of user interfaces components
- These architectural models, which represent the user interfaces, can vary at runtime due to changes in the context(user interaction, a temporal event, etc)
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
4
ICSOFT 201224-27 de julio de 2012
Index• Context• Our goal• Our proposalo Transformation Patterno Transformation Schemao Transformation Ruleso Rule Selection o Rule Transformation
• Conclusions• Future work
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
5
ICSOFT 201224-27 de julio de 2012
- Adaptation of architectural models- @Runtime- Using M2M transformations- Transformations are also adapted at runtime.- Model Transformations not prepared a priori- M2M is dynamically composed from a rule model
Our proposal
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
6
ICSOFT 201224-27 de julio de 2012
- Model the structure and composition of our transformation schema elements.
- Possibility of changing our adaptation schema- Elements:
• TransformationSchema• Metamodel• Model• Transformations:
M2M M2T
Transformation Pattern
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
7
ICSOFT 201224-27 de julio de 2012
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 conceptInput: the initial architectural model (AMi)Output: a new architectural model at runtime (AMi+1)
Transformation Schema: An instance of Transformation Pattern
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
8
ICSOFT 201224-27 de julio de 2012
Metamodel for transformation rules
Rule Repository Model (RRM)Selected rules model (RMi)
The transformation behaviour is defined in the rules:
Transformation Rules
- 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
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
9
ICSOFT 201224-27 de julio de 2012
Instance of the M2M concept
The process starts when the system detects that it is necessary an adaptation
Rule Selection
Input: - Architectural Model (AMi) - Rule Repository Model (RRM)
Output: - Selected rules model (RMi)
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
10
ICSOFT 201224-27 de julio de 2012
Instance of the M2T conceptThe process starts after RuleSelectionInput: - Selected rules model (RMi) Output: - Architectural model transformation
(ModelTransformationi)
Rule Transformation
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
11
ICSOFT 201224-27 de julio de 2012
A practical application of our proposal
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
12
ICSOFT 201224-27 de julio de 2012
A practical application of our proposal
RuleSelectionProcess
RuleTransformationProcess
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
13
ICSOFT 201224-27 de julio de 2012
Index• Context• Our goal• Our proposalo Transformation Patterno Transformation Schemao Transformation Ruleso Rule Selection o Rule Transformation
• Conclusions• Future work
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
14
ICSOFT 201224-27 de julio de 2012
• Adaptive transformation for Composing Model Transformations at Runtime.
• Transformation pattern/template for adaptation schema
• Adaptation schema is also changeable and adaptable
• High degree of adaptability
• All adaptation elements are based on MDE• Models (architectures, rule repository,
selected rules)• M2M (RuleSelection, ModelTransformation)• M2T (RuleTransformation)
Conclusions
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
15
ICSOFT 201224-27 de julio de 2012
Index• Context• Our goal• Our proposalo Transformation Patterno Transformation Schemao Transformation Ruleso Rule Selection o Rule Transformation
• Conclusions• Future work
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
16
ICSOFT 201224-27 de julio de 2012
<<model>>RRM
(repository)
<<metamodel>>RMM
<<model>>
RMi<<model>>
RMi+1
<<transformation>>RuleSelection
(M2M)
<<transformation>>RuleSelection
(M2M)
<<transformation>>RuleTransformation
(M2T)
<<transformation>>RuleTransformation
(M2T)
<<transformation>>
ModelTransformationi(M2M)
<<transformation>>
ModelTransformationi+1(M2M)
<<metamodel>>AMM
<<model>>
AMi<<model>>
AMi+1
conforms_to conforms_to
conforms_to
conforms_to conforms_to
1: source
2: target5: source
6: target
7: source
8: target
9: source
9: source
10: target13: source
14: target
15: source
1: source
state i state i+1
PHASE II<<transformation>>
RepositoryUpdate (M2M)
<<transformation>>RepositoryUpdate
(M2M)
3: source 11: source
12: target11: source
4: target3: source
PHASE III
target
source
decision-making
Future Work
GRUPO DE INFORMÁTICA APLICADAUNIVERSIDAD DE ALMERÍA
Com
posi
ng M
odel
Tra
nsfo
rmat
ions
at R
untim
e:
17
ICSOFT 201224-27 de julio de 2012
Adaptive Transformation Pattern for Architectural
Models
Diego Rodríguez-Gracia, Javier Criado, Luis Iribarne, Nicolás Padilla
Applied Computing Group University of Almería, Spain
Cristina Vicente-ChicoteDepartment of Information Communication Technologies
Technical University of Cartagena, SpainUna Metodología para la Recuperación y Explotación de Información Medioambiental (TIN2010-15588)
Desarrollo de un Agente Web Inteligente de Información Medioambiental (TIC-6114)