29
COMP 522 – Modelling and Simulation Project Presentation Project Title: Use the multi-formalism modelling and simulation tool Ptolemy II to study a personalized rapid transportation system Presented by: Onur DUMAN [email protected]

COMP 522 – Modelling and Simulation Project Presentation

  • Upload
    dixie

  • View
    39

  • Download
    0

Embed Size (px)

DESCRIPTION

COMP 522 – Modelling and Simulation Project Presentation. Project Title: Use the multi-formalism modelling and simulation tool Ptolemy II to study a personalized rapid transportation system Presented by: Onur DUMAN [email protected]. Motivation. - PowerPoint PPT Presentation

Citation preview

Page 1: COMP 522 – Modelling and Simulation Project Presentation

COMP 522 – Modelling and Simulation Project Presentation

Project Title: Use the multi-formalism modelling and

simulation tool Ptolemy II to study a personalized rapid transportation system

Presented by:Onur DUMAN

[email protected]

Page 2: COMP 522 – Modelling and Simulation Project Presentation

Motivation

• Project was done using multi modelling and formalism tool Ptolemy II

• Transportation System : Trains which are travelling between terminals.

• Both time concept and event concept are taken into account during modelling

Page 3: COMP 522 – Modelling and Simulation Project Presentation

Motivation(2)

• Usage of “Modal Model” feature of Ptolemy II

• Simulation will be done by getting a trace of locations that the train has passed

• State of train is mainly dependent on location of train

Page 4: COMP 522 – Modelling and Simulation Project Presentation

Proposal/Requirements

• Four trains and six stations.

• Each train has an initial location given at the start

• Train can depart if there is no train 100 yards front of the train

Page 5: COMP 522 – Modelling and Simulation Project Presentation

Proposal/Requirements(2)

• Train will go with its maximum speed unless there is another train within 80 yards after the train

• Trains follow a circular track

• Each train has a passenger button

Page 6: COMP 522 – Modelling and Simulation Project Presentation

Proposal/Requirements(3)

• If train stops at a station, it will wait 90 seconds before the next departure.

• If there are no trains within 100 yards of the train, it will depart

Page 7: COMP 522 – Modelling and Simulation Project Presentation

DesingAndModels

• Both Statecharts and Block Diagrams are used

• Firstly, simple functional blocks, which will be used for complicated tasks are modeled

Page 8: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(2) - TrainDistanceComparator

Page 9: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(3) - TrainComparisonUnit

Page 10: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(4) - ComparisonUnitForShortDistance

Page 11: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(5) - TerminalDistanceAndNumber

Page 12: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(6) - TrainModel

Page 13: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(7) - TrainFunction

Page 14: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(8) - TrainRunning

Page 15: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(9) – A Simple Delay

Page 16: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModels(10) – Operation for Passenger Button

Page 17: COMP 522 – Modelling and Simulation Project Presentation

DesignAndModel11 - CompleteModel

Page 18: COMP 522 – Modelling and Simulation Project Presentation

Implementation• Performed using Ptolemy II tool

• Each model discussed above is implemented as a seperate file instead of simple units: So, 6 XML Files: – completeTrainModel.xml – terminalDistanceAndNumber.xml – trainComparisonUnit.xml – trainDistanceComparison.xml – trainModel.xml – trainShortDistanceComparison.xml

Page 19: COMP 522 – Modelling and Simulation Project Presentation

Experiments

• Two experimental configurations:– Firstly, train initially at position 195, it is scheduled

to stop at station 4, but a passenger requests to stop at station 1 by pushing the button but after stopping for 90 seconds, train can not continue because there is another train at 300( stopped train is at 200)

Page 20: COMP 522 – Modelling and Simulation Project Presentation

Experiments(2)

Page 21: COMP 522 – Modelling and Simulation Project Presentation

Experiments(3)

• Outputs:Train Locations : 196 197 198 199 200 200 200 200 200 200 200

Train Next Stations: 4 4 4 1 1 1 1 1 1 1 ( at fourth iteration a passenger requested to stop at station 1( nearest station) )

Page 22: COMP 522 – Modelling and Simulation Project Presentation

Experiments(4)

• Train is at location 195 initially, stops at station located at 200, and after stopping continues its travel because there is no train after 100 yards from the train.

Page 23: COMP 522 – Modelling and Simulation Project Presentation

Experiments(5)

Page 24: COMP 522 – Modelling and Simulation Project Presentation

Experiments(6)

• Output:

Train Locations : 196 197 198 199 200 200 200 201 202 203 (After

stopping at station 1, train can continue its travel)

Train Next Stations: 0 0 0 1 1 1 1 1 1 1 ( at fourth iteration a passenger

requested to stop at station 1( nearest station) )

Page 25: COMP 522 – Modelling and Simulation Project Presentation

Conclusion

• Study of public transportation system using Ptolemy II

• Trains travel counterclockwise and if there is a passenger is going to get off at the next station, the train stops at the station

• Train maintains its speed according to its distance to the train in front of it

Page 26: COMP 522 – Modelling and Simulation Project Presentation

Conclusion(2)

• State of the train and variables of the train( location and next station) change according to location of train and calculations done according to locations of all the trains

• Delay was introduced in order to simulate stop at station

Page 27: COMP 522 – Modelling and Simulation Project Presentation

Live Demo

• A demo of experiment 1 and experiment 2

Page 28: COMP 522 – Modelling and Simulation Project Presentation

References

• Transportation System inspired from the article:– Executable Object Modelling with Statecharts http://ieeexplore.ieee.org/

iel1/2/13072/00596624.pdf?isNumber=13072

• Ptolemy II Documentation and Tutorials:– http://ptolemy.berkeley.edu/ptolemyII/

Page 29: COMP 522 – Modelling and Simulation Project Presentation

Thanks for Listening

• Any questions?

• Any comments?