240 likes | 360 Views
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.
E N D
The Modular TimedGraph Transformation 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 • The Discrete Event System Specification [1] (DEVS) formalism • Highly compositional simulation framework • DEVS: • Blocks • Ports • Events • Semantics: Parallel composition of blocks [1] Zeigler B.P., Multifacetted Modelling and Discrete Event Simulation/ Academic Press, London (1984)
X Atomic DEVS x1 tx t S s'' ext((s,e),x) (s,0) (s,e) s (s) (s0,0) s0 int(s) s' 0 tx t Y (s) y1 ty t
Coupled DEVS C1 A1 C2 A2
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 [2] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with DEVS. AGTIVE 2007, LNCS (2008)
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
Examples (2) Back-tracking (Selection Pattern)
Examples (3) Synchronization Pattern
Applications: Model the transformation system [3] Model Everything [3] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with Time for Simulation-based Design. ICMT 2007, LNCS 5063, pp. 91-106 (2008)
Applications: Modelling & simulation-based design [3] Model of System • Finding the optimal game speed Model of Environment Simulation Experiments Synthesis of Application [3] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with Time for Simulation-based Design. ICMT 2007, LNCS 5063, pp. 91-106 (2008)
Applications: Real-time transformations (games)
Applications: Antworld simulation case study [4] [4] Eugene Syriani and Hans Vangheluwe. Using MoTif for the AntWorld Simulation Tool Contest. In: ArendRensik and Pieter Van Ghorp (eds.) Workshop on Graph-Based Tools (GraBaTS 2008). Best Live Solution (GUI). Leicester (2008).
Applications: CD 2 RDBMS case study
What’s next: Scaleability Higher-order transformations
What’s next: Scaleability Declarative bi-directional transformations
What’s next: Scaleability Efficiency • Matching • Implementation • Distributed
References • http://www.cs.mcgill.ca/~esyria • Upcoming SoSym article • Eugene Syriani and Hans Vangheluwe. Using MoTif for the AntWorld Simulation Tool Contest. In: ArendRensik 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).