The I nterchange of The I nterchange of ( Meta) Models betw een - - PowerPoint PPT Presentation

the i nterchange of the i nterchange of meta models betw
SMART_READER_LITE
LIVE PREVIEW

The I nterchange of The I nterchange of ( Meta) Models betw een - - PowerPoint PPT Presentation

Department of Computer Science Business Information Systems The I nterchange of The I nterchange of ( Meta) Models betw een MetaEdit+ and Eclipse EMF and Eclipse EMF Heiko Kern ke n@info matik kern@informatik.uni-leipzig.de ni leip ig de


slide-1
SLIDE 1

Department of Computer Science Business Information Systems

The I nterchange of The I nterchange of ( Meta) Models betw een MetaEdit+ and Eclipse EMF and Eclipse EMF

Heiko Kern ke n@info matik ni leip ig de kern@informatik.uni-leipzig.de Nashville, Tennessee, 10/ 19/ 2008

1

slide-2
SLIDE 2

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Agenda

  • 1. Introduction

2 MetaEdit-EMF-Bridge

  • 2. MetaEdit EMF Bridge
  • 3. Demonstration

4 Summarize

  • 4. Summarize

The 8th OOPSLA Workshop on Domain-Specific Modeling 2

slide-3
SLIDE 3

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

MetaEdit+

  • Tool for Domain-Specific

M d li Modeling

  • Definition of DSLs and

modeling

  • Different views (diagram,

table, matrix) C d t

  • Code generator
  • Extensive model

repository p y

  • Commercial product,

MetaCase

The 8th OOPSLA Workshop on Domain-Specific Modeling 3

slide-4
SLIDE 4

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Eclipse EMF

  • Java framework for

b ildi (E li )

XML Schema UML Java Ecore XMI

building (Eclipse) applications based on models

  • Many tools can operate
  • n EMF metamodels and

models: ATL oAW models: ATL, oAW, Epsilon, EMFT

  • Tool infrastructure for

M d l D i E i i Model-Driven Engineering

  • Similar to the Meta Object

Facility (MOF) y ( )

  • Open source

The 8th OOPSLA Workshop on Domain-Specific Modeling 4

slide-5
SLIDE 5

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Motivation

MetaEdit-EMF-Bridge

  • Combines the advantages of both tool spaces
  • MetaEdit is suitable for DSM

MetaEdit is suitable for DSM

  • Eclipse EMF is suitable for model processing
  • MetaEdit models can be processed by EMF tools and

p y vice versa

  • Tool chains and re-use of (meta)models, model

ti

  • perations

The 8th OOPSLA Workshop on Domain-Specific Modeling 5

slide-6
SLIDE 6

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Conceptual Approach

M3

MMM

Mapping

MMM‘

M2

conform to conform to

MM 1 MM 2

conform to Transform ation

MM‘1 MM‘2

conform to

M1

M 1 M 2 M 3 M 4

Transform ation

M‘1 M‘2 M‘3 M‘4

1 2 3 4 1 2 3 4

The 8th OOPSLA Workshop on Domain-Specific Modeling 6

slide-7
SLIDE 7

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Bridge Overview

Eclipse EMF

E

MetaEdit

GOPRR M3-level Ecore f t GOPRR mapping b d MetaEdit repository EObject determinates determinates conforms to

M3 M2

conforms to Metamodel based

  • n

repository GOPRR generalization M2-level transformation Metamodel conforms to Metamodel instance of instance of based

  • n

Model conforms to

M1

M1-level transformation Model

The 8th OOPSLA Workshop on Domain-Specific Modeling 7

transformation

slide-8
SLIDE 8

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

MetaEdit: GOPRR

typeName Concept Property * * dataType Property * propertyCollection NonProperty Relationship Role Object 1 relationship role 1

  • bjectSet

* * roleSet * relationSet * 1 1 * relationship role * 1

  • bjectSet

* * * roleSet * * bj S * * Graph Connection bindingSet 1 *

  • bjectSet

connectionCollection 1 Binding

The 8th OOPSLA Workshop on Domain-Specific Modeling 8

slide-9
SLIDE 9

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Eclipse EMF: Ecore

ENamedElement EClassifier ETypedElement eType ENamedElement R f T EClassifier ETypedElement eSuperTypes EClass eReferenceType EStructuralFeature EReference EDataType eStructuralFeatures EAttribute eAttributeType

The 8th OOPSLA Workshop on Domain-Specific Modeling 9

slide-10
SLIDE 10

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Mapping Rules MetaEdit Eclipse EMF

M3 M2

Activates: EClass relationSet Event: EClass EPC:EClass

  • bjectSet

M1

Function: EClass

  • bjectSet

a:Activates relationSet e:Event epc:EPC

  • bjectSet

The 8th OOPSLA Workshop on Domain-Specific Modeling 10

f:Function

  • bjectSet
slide-11
SLIDE 11

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Application exam ple

MetaEdit language d fi iti EMF-MetaEdit m etam odel

MetaEdit-EMF- Metam odel- Transform ation

definition

conform to conform to

  • AW

Validation

MetaEdit m odel EMF-MetaEdit m odel

MetaEdit-EMF- Model- Transform ation

The 8th OOPSLA Workshop on Domain-Specific Modeling 11

slide-12
SLIDE 12

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Sum m ary

  • Development of a M3-level based bridge between

MetaEdit and Eclipse EMF

  • Analysis of the both metametamodel
  • Mapping between metametamodels
  • Transformation at M2-level and M1-level
  • Applications of the bridge
  • Open issues

F li ti f th h d th M3 l l

  • Formalization of the approach and the M3-level

mapping rules

  • Uses cases: Is the approach really practicable in

Uses cases: Is the approach really practicable in real world?

  • Synchronization

The 8th OOPSLA Workshop on Domain-Specific Modeling 12

slide-13
SLIDE 13

Model Interchange Between MetaEdit+ and EMF

Department of Computer Science Business Information Systems

Thank o ! Q estions? Thank you! Questions?

The 8th OOPSLA Workshop on Domain-Specific Modeling 13