A modular timed graph transformation language for simulation-based design

We introduce the MoTif (Modular Timed graph transformation) language, which allows one to elegantly model complex control structures for programmed graph transformation. These include modular construction, parallel composition, and a temporal dimension in addition to the usual transformation control structures. The first part of this contribution formally introduces MoTif and its semantics is based on the Discrete EVent system Specification (DEVS) formalism which allows for highly modular, hierarchical modelling of timed, reactive systems. In MoTif, graphs are embedded in events and individual transformation rules are embedded in atomic DEVS models. A side effect of the use of DEVS is the introduction of an explicit notion of time. This allows one to model a time-advance for every rule as well as to interrupt (pre-empt) rule execution. In the second part, we design a case study to show how the explicit notion of time allows for the simulation-based design of reactive systems such as modern computer games. We use the well-known game of PacMan as an example and model its dynamics in MoTif. This also allows the modelling of player behaviour, incorporating data about human players’ behaviour, and reaction times. Thus, a model of both player and game is obtained which can be used to evaluate, through simulation, the playability of a game design. We propose a playability performance measure and change the value of some parameters of the PacMan game. For each variant of the game thus obtained, simulation yields a value for the quality of the game. This allows us to choose an “optimal” (from a playability point of view) game configuration. The user model is subsequently replaced by a visual interface to a real player, and the game model is executed using a real-time DEVS simulator.

[1]  Holger Giese,et al.  Synthesis of timed behavior from scenarios in the Fujaba Real-Time Tool Suite , 2009, 2009 IEEE 31st International Conference on Software Engineering.

[2]  Tobias Rötschke,et al.  MOFLON: A Standard-Compliant Metamodeling Framework with Graph Transformations , 2006, ECMDA-FA.

[3]  Andy Schürr,et al.  Computing with Graphs and Graph Rewriting , 1999 .

[4]  Feng Shi,et al.  Towards Generation of Efficient Transformations , 2004, GPCE.

[5]  Manfred Nagl,et al.  Graph-Grammars and Their Application to Computer Science , 1986, Lecture Notes in Computer Science.

[6]  Gabor Karsai,et al.  The design of a language for model transformations , 2006, Software & Systems Modeling.

[7]  François-Xavier Dormoy,et al.  SCADE 6 A Model Based Solution For Safety Critical Software Development , 2007 .

[8]  Juan de Lara,et al.  Event-Driven Grammars: Towards the Integration of Meta-modelling and Graph Transformation , 2004, ICGT.

[9]  Eugene Syriani,et al.  A multi-paradigm foundation for model transformation language engineering , 2011 .

[10]  Jean-Baptiste Filippi,et al.  JDEVS: an implementation of a DEVS based formal framework for environmental modelling , 2004, Environ. Model. Softw..

[11]  Hans Vangheluwe,et al.  Programmed Graph Rewriting with Time for Simulation-Based Design , 2008, ICMT@TOOLS.

[12]  Robin Hunicke,et al.  The case for dynamic difficulty adjustment in games , 2005, ACE '05.

[13]  Hans Vangheluwe,et al.  Programmed Graph Rewriting with DEVS , 2008, AGTIVE.

[14]  Nils J. Nilsson,et al.  A Formal Basis for the Heuristic Determination of Minimum Cost Paths , 1968, IEEE Trans. Syst. Sci. Cybern..

[15]  Michael Lawley,et al.  Incremental model transformation for the evolution of model-driven systems , 2006, MoDELS'06.

[16]  Reiko Heckel,et al.  Graph Transformation with Time: Causality and Logical Clocks , 2002, ICGT.

[17]  Bernard P. Zeigler,et al.  Multifacetted Modelling and Discrete Event Simulation , 1984 .

[18]  Holger Giese,et al.  The fujaba real-time tool suite: model-driven development of safety-critical, real-time systems , 2005, ICSE.

[19]  Hassan Charaf,et al.  A Visual Control Flow Language for Model Transformation Systems , 2006, IASTED Conf. on Software Engineering.

[20]  T. Levendovszky,et al.  Control Flow Support in Metamodel-Based Model Transformation Frameworks , 2005, EUROCON 2005 - The International Conference on "Computer as a Tool".

[21]  Albert Zündorf,et al.  Story Diagrams: A New Graph Rewrite Language Based on the Unified Modeling Language and Java , 1998, TAGT.

[22]  Albert Zündorf Implementation of the imperative / rule based language PROGRES , 1992 .

[23]  Dániel Varró,et al.  The model transformation language of the VIATRA2 framework , 2007, Sci. Comput. Program..

[24]  Azzedine Boukerche,et al.  Design of A QoS-Aware Service Composition and Management System in Peer-to-Peer Network Aided by DEVS , 2008, 2008 12th IEEE/ACM International Symposium on Distributed Simulation and Real-Time Applications.

[25]  Hartmut Ehrig,et al.  Refinements of Graph Transformation Systems via Rule Expressions , 2000 .

[26]  Albert Zündorf,et al.  Graph Pattern Matching in PROGRES , 1994, TAGT.

[27]  Dániel Varró,et al.  Live Model Transformations Driven by Incremental Pattern Matching , 2008, ICMT@TOOLS.

[28]  M. Hirsch,et al.  The Fujaba real-time tool suites: model-driven development of safety-critical, real-time systems , 2005, Proceedings. 27th International Conference on Software Engineering, 2005. ICSE 2005..

[29]  Manfred Nagl,et al.  Graph-Grammars and Their Application to Computer Science , 1982, Lecture Notes in Computer Science.

[30]  Hartmut Ehrig,et al.  Handbook of graph grammars and computing by graph transformation: vol. 3: concurrency, parallelism, and distribution , 1999 .

[31]  J. van Leeuwen,et al.  Theory and Application of Graph Transformations , 1998, Lecture Notes in Computer Science.

[32]  Reiko Heckel,et al.  Stochastic Graph Transformation Systems , 2004, Fundam. Informaticae.

[33]  Hartmut Ehrig,et al.  Selected papers from the 5th International Workshop on Graph Gramars and Their Application to Computer Science , 1994 .

[34]  Reiko Heckel,et al.  Graph Transformation in a Nutshell , 2006, FoVMT.

[35]  Gabriele Taentzer,et al.  AGG: A Graph Transformation Environment for Modeling and Validation of Software , 2003, AGTIVE.

[36]  Juan de Lara,et al.  AToM3: A Tool for Multi-formalism and Meta-modelling , 2002, FASE.

[37]  Juan de Lara,et al.  Event-driven grammars: relating abstract and concrete levels of visual languages , 2007, Software & Systems Modeling.

[38]  Grzegorz Rozenberg,et al.  Handbook of Graph Grammars and Computing by Graph Transformations, Volume 1: Foundations , 1997 .

[39]  Hassan Charaf,et al.  Model Transformation with a Visual Control Flow Language , 2008 .

[40]  Sung-Do Chi,et al.  Hierarchical Modeling and Simulation Environment for Intelligent Transportation Systems , 2004, Simul..

[41]  L. Devroye Non-Uniform Random Variate Generation , 1986 .

[42]  Dorothea Blostein,et al.  Issues in the Practical Use of Graph Rewriting , 1994, TAGT.

[43]  Andy Schürr,et al.  Graph Grammar Engineering with PROGRES , 1995, ESEC.

[44]  Hartmut Ehrig,et al.  Graph Grammars and Their Application to Computer Science , 1991, Lecture Notes in Computer Science.

[45]  Tom Mens,et al.  A Taxonomy of Model Transformation , 2006, GRaMoT@GPCE.

[46]  Huining Feng,et al.  Model Transformation with Hierarchical Discrete-Event Control , 2009 .

[47]  Andy Schürr,et al.  Specification of Graph Translators with Triple Graph Grammars , 1994, WG.

[48]  Aditya Agrawal Metamodel based model transformation language , 2003, OOPSLA '03.

[49]  Bernard P. Zeigler,et al.  Parallel DEVS: a parallel, hierarchical, modular modeling formalism , 1994, Proceedings of Winter Simulation Conference.

[50]  Ulrich Nickel,et al.  The FUJABA environment , 2000, Proceedings of the 2000 International Conference on Software Engineering. ICSE 2000 the New Millennium.

[51]  A. V. Zaitsev,et al.  Mathematical Description of Sensorimotor Reaction Time Distribution , 2004, Human Physiology.