McGill University School of Computer Science Ph.D. Student in the Modelling, Simulation and Design Lab MSDL’08 Eugene Syriani.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Advanced Piloting Cruise Plot.
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Arithmetic and Geometric Means
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
2010 fotografiert von Jürgen Roßberg © Fr 1 Sa 2 So 3 Mo 4 Di 5 Mi 6 Do 7 Fr 8 Sa 9 So 10 Mo 11 Di 12 Mi 13 Do 14 Fr 15 Sa 16 So 17 Mo 18 Di 19.
McGill University School of Computer Science Ph.D. Candidate in the Modelling, Simulation and Design Lab MSDL09 De-/Re-constructing Model Transformation.
Solve Multi-step Equations
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
McGill University School of Computer Science Ph.D. Student in the Modelling, Simulation and Design Lab Eugene Syriani Hans Vangheluwe.
Eugene Syriani and Huseyin Ergin University of Alabama Software Modeling Lab Software Engineering Group Department of Computer Science College of Engineering.
Model Transformation Verification: some theory and some practice Levi Lúcio MSDL Lab / NECSIS project McGill University.
DOROTHY Design Of customeR dRiven shOes and multi-siTe factorY Product and Production Configuration Method (PPCM) ICE 2009 IMS Workshops Dorothy Parallel.
Randomized Algorithms Randomized Algorithms CS648 1.
ABC Technology Project
McGill University School of Computer Science Ph.D. Student in the Modelling, Simulation and Design Lab GraBaTS08 Eugene Syriani Hans Vangheluwe.
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
15. Oktober Oktober Oktober 2012.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
BIOLOGY AUGUST 2013 OPENING ASSIGNMENTS. AUGUST 7, 2013  Question goes here!
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
McGill University School of Computer Science Ph.D. Candidate in the Modelling, Simulation and Design Lab Eugene Syriani.
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Executional Architecture
25 seconds left…...
Copyright © Cengage Learning. All rights reserved.
Rational Functions and Models
H to shape fully developed personality to shape fully developed personality for successful application in life for successful.
Håkan Sundell, Chalmers University of Technology 1 Evaluating the performance of wait-free snapshots in real-time systems Björn Allvin.
Januar MDMDFSSMDMDFSSS
Chapter 10: The Traditional Approach to Design
Analyzing Genes and Genomes
Systems Analysis and Design in a Changing World, Fifth Edition
McGill University GT-VMT’10 School of Computer Science Ph.D. Candidate in the Modelling, Simulation and Design Lab Eugene Syriani Hans Vangheluwe.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Intracellular Compartments and Transport
PSSA Preparation.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
From Model-based to Model-driven Design of User Interfaces.
McGill University School of Computer Science ‘07 Eugene Syriani and Hans Vangheluwe McGill University School of Computer Science 1.
Presentation transcript:

McGill University School of Computer Science Ph.D. Student in the Modelling, Simulation and Design Lab MSDL’08 Eugene Syriani

MSDL’08 REFERENCE GraBaTS 2008 Tool contest E. Syriani and H. Vangheluwe: Using MoTif for the AntWorld Simulation Tool Contest DEVS Book (2008) E. Syriani and H. Vangheluwe: DEVS: A Semantic Domain For Programmed Graph Transformation 2

MSDL’08 OVERVIEW  Background  In the context  Case Study: The extended AntWorld Simulation  The Modular Timed Graph Transformation language (MoTif)  From DEVS to MoTif  The MoTif solution for the AntWorld case-study  Rules & Control Structure  Real-Time Model Transformation & Deployment  Conclusion and Future Work 3

MSDL’08 IN THE CONTEXT Model Transformation  Graph Transformation Controlled Graph Rewriting (rewriting rules) Control Primitives : Sequencing, Branching, Looping, Parallelism, Hierarchy Time is inherent in our transformation models 4

MSDL’08 CASE STUDY: ANTWORLD SIMULATION [1] 5 [1] (2008/07/21) EXTENDED

MSDL’08 CASE STUDY: ANTWORLD SIMULATION Domain-specific modelling 6

MSDL’08 CASE STUDY: ANTWORLD SIMULATION Create grid nodes when ant reaches outmost circle Differentiate between nodes along main axis Ant movement in search mode Ant movement in carry mode Ant creation, once food is brought back to the hill Evaporation of pheromones Simulation Semantics 7

MSDL’08 CASE STUDY: ANTWORLD SIMULATION++ At any moment in time, a human steps on the map – Kills all ants on the five nodes – The nodes loose food and pheromones Extended Simulation Semantics 8

MSDL’08 FROM DEVS TO MOTIF 9

MSDL’08 DEVS The Discrete Event System Specification [2] (DEVS) formalism Highly compositional simulation framework DEVS: – Blocks – Ports – Events Semantics: Parallel composition of blocks/models 10 [2] Zeigler B.P., Multifacetted Modelling and Discrete Event Simulation/ Academic Press, London (1984)

MSDL’08 DEVS META-MODEL

MSDL’08 MoTiF [2] Blocks – Atomic: encapsulate a graph rewriting rule – Coupled: encapsulate a set of rules (graph grammar) Events – Inport: receive the host graph – Outport(s): send the transformed graph 12 [2] Syriani E. and Vangheluwe H.: Programmed Graph Rewriting with DEVS. AGTIVE 2007, LNCS (2008)

MSDL’08 MOTIF META-MODEL

MSDL’08 MOTIF AS A DEVS MODEL 14

MSDL’08 MOTIF AS A DEVS MODEL 15 At most one rule will execute

MSDL’08 MOTIF AS A DEVS MODEL Synchronize parallel threads Success if at least one thread succeeds 16

MSDL’08 MOTIF AS A DEVS MODEL 17 The select function: 1.If the Selector is in the imminent list, choose the Selector. 2.Among all the rules that still have a match, choose a corresponding ARule from the imminent list at random, no matter what depth it is at inside this CRule. 3.At this point no rule has any unprocessed match left, then choose any of the ARule in the imminent list. 4.Finally, the imminent list contains either custom atomic blocks or Synchronizers. 5.Proceed with a first-in-first-out selection.

MSDL’08 MoTiF MODELLING ENVIRONMENT IN AToM 3 [3] 18 [3] de Lara J., Vangheluwe H., AToM 3 : A tool for multi-formalism and meta-modelling. FASE, LNCS 2306 (2002),

MSDL’08 MoTiF EXECUTION COMPILE GENERATE IMPORT SIMULATE Class Grabfood : def match(): … def execute(): … Class Grabfood : def match(): … def execute(): … class Grabfood(ARule): def __init__(self): ARule.__init__(self, name=‘GF') self.state = ARuleState(Grabfood()) def weightFunction(self): return 1.0 class Grabfood(ARule): def __init__(self): ARule.__init__(self, name=‘GF') self.state = ARuleState(Grabfood()) def weightFunction(self): return 1.0 Class Grabfood : def match(): … def execute(): … Class Grabfood : def match(): … def execute(): … class Grabfood: def match(): … def execute(): … class Grabfood: def match(): … def execute(): … 19

MSDL’08 MOTIF SOLUTION 20

MSDL’08 ANTWORLD RULES 21

MSDL’08 SOME ANTWORLD RULES 22 dropFoodcheckAntOnOutCircleconnectNodesInSameCircle goToSameNodeInmoveTowardsHillgrabFood KillOnNodeKillOnNextCircleNodeInWeakenSameNodeOut

MSDL’08 MODELLING OF THE TRANSFORMATION: Round CRule 23

MSDL’08 MODELLING OF THE TRANSFORMATION: AntMovements CRule 24

MSDL’08 MODELLING OF THE TRANSFORMATION: GenerateCircle CRule 25

MSDL’08 MODELLING OF THE TRANSFORMATION: EndOfRound CRule 26

MSDL’08 MODELLING OF THE TRANSFORMATION: HumanStep CRule 27

MSDL’08 MODELLING OF TRANSFORMATION: SYSTEM 28 User – Controller – Autonomous loop Feed-back to User On User interrupt: User Controlled Feed-back to User

MSDL’08 SYNTHESIS OF APPLICATION [4] Synthesis of a reactive application Discard the UserBehavior block Runs on a web browser using AJAX and SVG Real-time model transformation (RT-DEVS) 29 [4] E. Syriani and H. Vangheluwe. Programmed Graph Rewriting with Time for Simulation-Based Design. ICMT LNCS, vol.5063, pp (2008)

MSDL’08 CONCLUSION Formalised MoTif in terms of DEVS Provided solution to the AntWorld case-study Extended solution with user interrupt Deployment of an application ?Pure parallel execution, possibly distributed ?Re-use and parametrisation of transformation models ?Allowing variable structure 30

MSDL’08 31 ?