DEVS modeling of Traffic in AToM3 Presented by Ximeng Sun April - - PowerPoint PPT Presentation

devs modeling of traffic in atom3
SMART_READER_LITE
LIVE PREVIEW

DEVS modeling of Traffic in AToM3 Presented by Ximeng Sun April - - PowerPoint PPT Presentation

DEVS modeling of Traffic in AToM3 Presented by Ximeng Sun April 11, 2005 References [1] Bernard P. Zeigler, Herbert Praehofer, and Tag Gon Kim. Theory of Modeling and Simulation. Academic Press, 2000. [2] Hans Vangheluwe, Juan de


slide-1
SLIDE 1

DEVS modeling of Traffic in AToM3

Presented by Ximeng Sun April 11, 2005

slide-2
SLIDE 2

References

[1] Bernard P. Zeigler, Herbert Praehofer, and Tag Gon Kim. Theory of Modeling and Simulation. Academic Press, 2000.

[2] Hans Vangheluwe, Juan de Lara. Computer Automated Multi-Paradigm Modelling for Analysis and Design of Traffic Networks. Proceedings of the 2004 Winter Simulation Conference.

[3] Ernesto Posse and Jean-Sebastien Bolduc. Generation of DEVS Modeling and Simulation Environments. Proceedings of the 2003 Summer Simulation MultiConference, 2003

[4] Modelling, Simulation and Design Lab. AToM3 V0.3: A Tool for Multi-formalism and Meta-Modelling http://msdl.cs.mcgill.ca/MSDL/research/

[5] Bernard P. Zeigler, Hessam S. Sarjoughian. Introduction to DEVS Modeling and Simulation with JAVA. http://www.acims.arizona.edu/SOFTWARE/software.shtml#DEVSJAVA

slide-3
SLIDE 3

Outline

Introduction

TimedTraffic Formalism

DEVS Formalism

Map TimedTraffic to DEVS

Meta-Modeling

TimedTraffic Meta-Model

DEVS Meta-model

Model Transformation

Code Generation (Python and Java)

Demo

Conclusion

slide-4
SLIDE 4

 Introduction

 TimedTraffic Formalism  DEVS Formalism

 Map TimedTraffic to DEVS

 Meta-Modeling

 TimedTraffic Meta-Model  DEVS Meta-model

 Model Transformation  Code Generation

 Demo  Conclusion

slide-5
SLIDE 5

TimedTraffic Formalism

Based on models described in [2].

slide-6
SLIDE 6

DEVS Formalism

slide-7
SLIDE 7

 Introduction

 TimedTraffic Formalism  DEVS Formalism

 Map TimedTraffic to DEVS

 Meta-Modeling

 TimedTraffic Meta-Model  DEVS Meta-model

 Model Transformation  Code Generation

 Demo  Conclusion

slide-8
SLIDE 8

TimedTraffic Meta-Model

Based on the meta-model described in [2].

slide-9
SLIDE 9

DEVS Meta-Model

Based on the meta-model described in [3] and the work done by Denis Dube (http://moncs.cs.mcgill.ca/people/hv/teaching/MSBDesign/presentations/050324.DenisDube.pdf) .

slide-10
SLIDE 10

TimedTraffic to DEVS Transformation Rules

 AToM3 can automatically generate nice

documents for all transformation rules.

slide-11
SLIDE 11

Rule 0: Initialization

slide-12
SLIDE 12

Rule 1: Generate Top-level “Traffic” Coupled DEVS

slide-13
SLIDE 13

Rule 2: Transform “Source” to “Generator” Atomic DEVS

slide-14
SLIDE 14

Rule 3: Transform “Sink” to “Collector” Atomic DEVS

slide-15
SLIDE 15

Rule 4: Transform “RoadSection” to “Road” Atomic DEVS

slide-16
SLIDE 16

Rule 5: Connect “Generator” with “Road”

slide-17
SLIDE 17

Rule 6: Connect “Road” to “Collector”

slide-18
SLIDE 18

Rule 7: Transform “FlowTo” to “Channel”

slide-19
SLIDE 19

Rule 8: Copy “Capacity” information into “Road”

slide-20
SLIDE 20

Rule 9: Remove “Capacity”

slide-21
SLIDE 21

Rule 10: Transform “TrafficLight” to “TrafficLight” Atomic DEVS (double)

slide-22
SLIDE 22

Rule 11: Transform “SyncWith” relation

slide-23
SLIDE 23

Rule 12: Transform “TrafficLight” to “TrafficLight” Atomic DEVS (single)

slide-24
SLIDE 24

Rule 13: Connect “TrafficLight” with “Road”

slide-25
SLIDE 25

Rule 14: Remove “TrafficLight” (step 1)

slide-26
SLIDE 26

Rule 15: Remove “TrafficLight” (step 2)

slide-27
SLIDE 27

Rule 16: Remove “RoadSection” (step 1)

slide-28
SLIDE 28

Rule 17: Remove “RoadSection” (step 2)

slide-29
SLIDE 29

Rule 18: Connect “Road” Atomic DEVS with “Traffic” Coupled DEVS

slide-30
SLIDE 30

Rule 19: Connect “TrafficLight” Atomic DEVS with “Traffic” Coupled DEVS

slide-31
SLIDE 31

Rule 20: Connect “Generator” and “Collector” Atomic DEVS with “Traffic” Coupled DEVS

slide-32
SLIDE 32

Code Generation

 Simulator in Python (PythonDEVS)

(Based on the work described in [3].)

Write codes to specify initial parameters, time advance function, output function, and conditions for transitions

Click “Gen” button in DEVS meta-model toolbar to generate simulators in Python

 There will be three files at top level: DEVS.py, Simulator.py,

Traffic.py

 For each atomic model there will one sub-directory which contains

  • ne file, such as University_Street.py

Run simulation

 e.g., $ python Traffic.py 10000

 Simulator in Java (DEVSJAVA)

slide-33
SLIDE 33

internal transition external transition

  • utput function

initParams time advance

slide-34
SLIDE 34

 Introduction

 TimedTraffic Formalism  DEVS Formalism

 Map TimedTraffic to DEVS

 Meta-Modeling

 TimedTraffic Meta-Model  DEVS Meta-model

 Model Transformation  Code Generation

 Demo  Conclusion

slide-35
SLIDE 35

DEVSJAVA Class hierarchy of DEVS classes

slide-36
SLIDE 36

Conclusion

 AToM3 is an amazing tool!  Pure graphical translation from DEVS or other

formalism to a real programming language such as Python or Java?

 Using neutral language to describe specific

cases in transformation rules?

slide-37
SLIDE 37

Thank you!