the mo dular ti med graph trans f ormation language

24
McGill University School of Computer Science Ph.D. Candidate in the Modelling, Simulation and Design Lab The Mo dular Ti med Graph Trans f ormation Language Eugene Syriani

Upload: jenaya

Post on 12-Feb-2016

33 views

Category:

Documents


0 download

DESCRIPTION

The Mo dular Ti med Graph Trans f ormation Language. Eugene Syriani. Overview. Motivation Language Semantic Domain Constructs Applications Modelling “everything” Examples ¿What’s next? Scaleability. Motivation. Model Transformation  Controlled Graph Rewriting. Semantic Domain. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: The  Mo dular  Ti med Graph Trans f ormation Language

McGill UniversitySchool of Computer Science

Ph.D. Candidate in the Modelling, Simulation and Design Lab

The Modular TimedGraph Transformation Language

Eugene Syriani

Page 2: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

OVERVIEW Motivation

Language Semantic Domain

Constructs

Applications Modelling “everything”

Examples

¿What’s next? Scaleability

2

Page 3: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

MOTIVATION• Model Transformation Controlled Graph Rewriting

3

Page 4: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

SEMANTIC DOMAIN• The Discrete Event System Specification [1] (DEVS)

formalism• Highly compositional simulation framework• DEVS:– Blocks– Ports– Events

• Semantics: Parallel composition of blocks

4[1] Zeigler B.P., Multifacetted Modelling and Discrete Event Simulation/ Academic Press, London (1984)

Page 5: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

DEVS META-MODEL

5

Page 6: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

S

t

(s)

(s,0)s

s''

s'

Y

tty

y1

(s)

int(s)

X

x1

tx t

tx

(s,e)ext((s,e),x)

(s0,0) s0

0

ATOMIC DEVS

Page 7: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

COUPLED DEVS

7

C1A1

A2

C2

Page 8: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

MoTiF MAPPED ONTO DEVS [2]

• Blocks– Atomic: encapsulate a graph rewriting rule– Coupled: encapsulate a set of rules, scoping

• Events– Inport: receive the host graph– Outport(s): send the transformed graph

8[2] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with DEVS. AGTIVE 2007, LNCS (2008)

Page 9: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

MOTIF META-MODEL

9

Page 10: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

LANGUAGE CONSTRUCTS

• AtomicRule (ARule): transformation rule application

• ForAllRule (FRule): apply rule on all matches (parallel independent)

• StarRule (SRule): apply rule as long as possible

• TransactionalRule (XRule): control backtracking enabled

• Selector: At most 1 rule is applied

• Synchronizer: synchronize (merge) “threads” of rule applications

• CoupledRule (CRule): parallel composition of inner models

10

Page 11: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

EXAMPLES (1)

11

Page 12: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

EXAMPLES (2)

(Selection Pattern)

Back-tracking

12

Page 13: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

EXAMPLES (3)Synchronization Pattern

13

Page 14: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

WORKFLOW

14

Page 15: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

MODEL THE TRANSFORMATION SYSTEM [3]

15

APPLICATIONS:

Model E

veryth

ing

[3] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with Time for Simulation-based Design. ICMT 2007, LNCS 5063, pp. 91-106 (2008)

Page 16: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

MODELLING & SIMULATION-BASED DESIGN [3]

16

APPLICATIONS:

Simulation Experiments

Synthesis of Application

Model of System

Model of Environment

Finding the optimal game speed

[3] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with Time for Simulation-based Design. ICMT 2007, LNCS 5063, pp. 91-106 (2008)

Page 17: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

REAL-TIME TRANSFORMATIONS (GAMES)

17

APPLICATIONS:

Page 18: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

ANTWORLD SIMULATION CASE STUDY [4]

18

APPLICATIONS:

[4] Eugene Syriani and Hans Vangheluwe. Using MoTif for the AntWorld Simulation Tool Contest. In: Arend Rensik and Pieter Van Ghorp (eds.) Workshop on Graph-Based Tools (GraBaTS 2008). Best Live Solution (GUI). Leicester (2008).

Page 19: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

CD 2 RDBMS CASE STUDY

19

APPLICATIONS:

Page 20: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

ESSENTIAL PRIMITIVE PROPERTIES

20

Page 21: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

WHAT’S NEXT: SCALEABILITYHigher-order transformations

21

Page 22: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

WHAT’S NEXT: SCALEABILITYDeclarative bi-directional transformations

22

Page 23: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

WHAT’S NEXT: SCALEABILITYEfficiency

23

• Matching• Implementation• Distributed

Page 24: The  Mo dular  Ti med Graph Trans f ormation Language

MoTif

REFERENCES• http://www.cs.mcgill.ca/~esyria• Upcoming SoSym article

• Eugene Syriani and Hans Vangheluwe. Using MoTif for the AntWorld Simulation Tool Contest. In: Arend Rensik and Pieter Van Ghorp (eds.) Workshop on Graph-Based Tools (GraBaTS 2008). Best Live Solution (GUI). Leicester (2008).

• Eugene Syriani and Hans Vangheluwe. Programmed Graph Rewriting with Time for Simulation-Based Design. In Alfonso Pierantonio, Antonio Vallecillo, Jean Bézivin, Jeff Gray (eds.): ICMT 2008. LNCS, vol. 5063, pp. 91-106. Springer-Verlag, Zürich (2008).

• Eugene Syriani. Programmed Graph Rewriting: MoTif, Presentation for COMP 763: Modelling and Simulation Based Design (2008).

• Eugene Syriani and Hans Vangheluwe: Programmed Graph Rewriting with DEVS. In A. Schürr, M. Nagl, and A. Zündorf (Eds.): AGTIVE 2007. LNCS, vol.5088, pp. 136-152. Springer-Verlag, Kassel (2008).

24