Weaving models


Published on

Advanced Software Engineering course - Guest Lecture

Weaving Models

This presentation has been developed in the context of the Advanced Software Engineering course at the DISIM Department of the University of L’Aquila (Italy).


1 Comment
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Weaving models

  1. 1. Università degli Studi dell’AquilaWeaving Models Ivano Malavolta DISIM Department, University of L’Aquila ivano.malavolta@univaq.it
  2. 2. The material in these slides may be freely reproducedand distributed, partially or totally, as far as an explicitreference or acknowledge to the material author ispreserved. Ivano Malavolta
  3. 3. MDE PrimerModel Weaving Why Linking Models together? Model Weaving & Weaving Models The AMW Project The AMW User Interface The AMW Core Metamodel Extending AMW Examples
  4. 4. GOALS to abstract upon selected aspects of the system to assess specific properties of the system early in the life cycle http://mdse-book.com
  5. 5. http://mdse-book.com
  6. 6. http://mdse-book.com
  7. 7. the metamodels for metamodelsdefines the first-class entities, relationships andconstraints of a modeling languagea reduced representation of the systemmodels should have a focus in order to be usefulthe “real thing” ...example
  8. 8. The means to specify the way to produce target models from anumber of source models Can be either horizontal or vertical
  9. 9. Why Linking Models together?Model Weaving & Weaving ModelsThe AMW Project The AMW User Interface The AMW Core Metamodel Extending AMWExamples
  10. 10. A system can be represented by “n” modelsEach model focusses on a specific aspect
  11. 11. It is often necessary to establish links between elements ofdifferent modelsTool interoperabilityTransformation specificationLinking entities across modelsTraceabilityModel mergingModel annotation
  12. 12. Model weaving is a generic operation that establishes fine- grained correspondences between model elements* Each correspondence defines associations between elements from different models According to the everything-is-a-model principle in MDE: models = models, metamodels, transformations, weaving models, etc.* FABRO, M. D. D., BZIVIN, J., JOUAULT, F., AND VALDURIEZ, P. Applying genericmodel management to data mapping. In Proceedings of the Journes Bases de DonnesAvances (BDA05) (2005).
  13. 13. Weaving models are special kinds of models that link togetherother modelsIn general a weaving model contains a set of links between elementsof a model and elements of another modelLinked models are called woven models
  14. 14. Weaving models conform to a weaving metamodelA weaving metamodel specifies the types of links that can beestablished between woven models
  15. 15. The operation of automatically creating a weaving modelIf we consider two woven models, the matching operation canbe seen as a function match : mm1 X mm2  WMMExamples of matching policies:• name similarity (eg. via edit distance)• structural similarity
  16. 16. AMW, the Atlas Model Weaver*, is a platform that manages weaving models AMW is part of the AMMA** platform, and it is being developed by the ATLAS group, INRIA It provides: • an EMF-based implementation of weaving model • an extensible GUI to create & manage weaving models • a core weaving metamodel* DIDONET DEL FABRO M., B´E ZIVIN J., JOUAULT F. AND BRETON E. ANDGUELTAS G. AMW: a generic model weaver. In Proc. of 1re Journe sur l’IngnierieDirige par les Modles, Paris, France. pp 105-114 (2005).** http://wiki.eclipse.org/index.php/AMMA
  17. 17. Weaving Tools Woven Woven model modelProjects Weaving Model Weaving properties
  18. 18. The core weaving metamodel enables to create links betweenmodel elementsIt can be extended to add other mapping semantics there is the possibility of creating variable mapping languagesdedicated to specific application requirements
  19. 19. Every element in a WM has a name & description The root element Weaving Links of a WM (can be nested) Identify thewoven models The type of elements that are linked Contain the identifiers of the woven elements
  20. 20. Weaving metamodel extensions must either:• extend the core WMM• extend other weaving extensionsWMM extensions can be arranged hierarchicallyThe following classes of the core metamodel can be extended:WmodelWModelRefWElementRefWlinkWLinkEndWElementRef
  21. 21. http://www.eclipse.org/gmt/amw/usecases/
  22. 22. Demo