38
Project JUTS – Urban Traffic Simulation System David Hartman www.juts.zcu.cz DSS 2004

Project JUTS – Urban Traffic Simulation System David Hartman DSS 2004

Embed Size (px)

Citation preview

Page 1: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Project JUTS – Urban Traffic Simulation System

David Hartman

www.juts.zcu.cz

DSS 2004

Page 2: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Talk Overview

Short introduction Overview of the project structure Project team Main activity areas Conclusions and future works

Page 3: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Short introduction

Complex urban traffic simulation Programs and peoples Java, XML, swing, CAD, … Wide collaboration (Pilsen dpt.)

Page 4: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Overview of project structure

Concepts and design – DSS2003 Main parts – Simulation part

– Core– GUI

New programs – Data processing– Map Editor– Generator editor

Page 5: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Basic simulation structure

Simulation coreData GUI

Page 6: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

What is Simulation Core?

Modified Nagel-Schreckenberg model Spatial divided cellular automata (CA)

with pseudo-agent behavior Leading Head Algorithm as modified

CA rule

2 1 1 3

space between vehicles

1 cell

speed vi < vmax

Simulation core

Page 7: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Simulation map structure

Simulation map Segments of map

– Roads with traffic lanes– Crossroads, roundabouts– Generators, Terminators

Connections– Accessplaces (discrete graph structure)

C

R R

R

R

R

R

G

G T

T

T

R - road C - crossroad G - generator T - terminator

G

Simulation core

Page 8: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

What does it mean Data?

XML based simulation structure JUTS project as defined data structure

– Main project file– Static Simulation Map

Segment Structure Graphic representation

– Dynamic data Stochastic settings Simulation state

Data

Page 9: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

What does GUI do?

Reading results of simulation and visual representation

Access to simulation structure– Reading content of different segments– Change properties

Control the simulation running

GUI

Page 10: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Extended project structure

Simulation coreData GUI

Map Editor

Generatorseditor

Transformationprograms

Pilsen

Data

Page 11: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Project Team

Project grows = more people Separeted problem parts

– Data Analysis– Map Editor– Simulation Core– GUI

Need for good communication

Page 12: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Team members

Pavel Herout – The Leader David Hartman – Project specification,

Core, First version of GUI, Site Martin Šour – GUI Jana Hájková – Map Editor T. Potužák & Z.Kubovec – Generator

Editor

Page 13: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Team communication

Simulation core

GUI

Map Editor Generatorseditor

HartmanŠour

Hájková

Herout

Kubovec & Potužák

Page 14: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Web Site

Versions on web site– Simulation Core– GUI– Maps

Plans and formats convention Other information

Page 15: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Main activity areas

Simulation core development GUI development Map editor and data works Generator creation from data Case study Cooperation with Pilsen

Page 16: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Simulation map

Creation of segment simulation map Loaded fully from XML data

– Static map– Dynamic data

Structure and Graphic divided Controled loading and logging

Page 17: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Simulation running

Connection of the segments into map Implementation of Leading Head

Algorithm Moving vehicles through the segment

structure Still bugging

Page 18: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Simulation features

Implementation of the basic simulation characteristics collecting

Including the path determination Enable cooperation with GUI Enable to run with offline output …

Page 19: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

First version of GUI

Swing Multilanguage enviroment GUI window structure Configuration file in XML

Page 20: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

First version of GUI

Enable loading projects– Using specific project structure– Offline and online

Manage the loading– Loading threads– Connecting GUI with simulation– Logging process

Page 21: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

First version of GUI

Simulation running– Creation of active running parser– Enable jumping

Manage the simulation map– Editing traffic lane content– Editing content of crossroad– Editing generator properties– Editing vehicle properties

Page 22: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

GUI extensions

Extension of configuration file New structure according to core and

data analysis developlment Map painting Performance improvement

Page 23: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Original map painting

Map structure in image Views at scrollpanel

only parts of the image Main disadvantage is

memory requirements

Page 24: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Map graphical rendering

Each simulation segment has its painter– Draw the segment (e.g. road)– Draw the parts of segment (e.g. traffic lane)– Draw vehicles in segments

Drawing Decision – Each part of segment– The whole map is not needed– Better for memory requirements

Page 25: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Map segment rendering

Painters test presents in area of view– Test itself– Test its parts

Performance and memory improvement

Testing follows

Page 26: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Memory Tests

Map Size Image Rendering

1663 x 1775 11 530 KB 47 KB

3326 x 3550 46 122 KB 47 KB

4989 x 5325 103 775 KB 47 KB

6652 x 7100 184 489 KB 47 KB

Page 27: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Performance tests

Map SizeIcon repaint

Graphical Rendering

Segment Rendering

25 x 27 0,02 4,0 4,0

103 x 110 0,02 5,4 5,4

207 x 221 0,02 8,0 8,2

415 x 443 0,02 13,2 13,4

831 x887 0,02 9,3 8,1

3326 x 3550 0,02 3,5 1,7

4989 x 5325 0,7 3,5 1,7

6652 x 7100 Exception 3,5 1,7

Page 28: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

GUI final

Page 29: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Map editor and data analysis

Design of map editor– Design of GUI– Data parsers

Working with data – creating standards with Pilsen city departement

Working on Lochotin district– Case study

Page 30: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Generator editor

Processing traffic detectors data for specific traffic lanes– Transformation to XML structure– Cooperation with the JUTS standards

GUI for simulation map editor creation– Graphical setting of generator properties– Easy segment creation

Page 31: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Visualization of detector data

Page 32: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Changes with emulation

Page 33: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Case study – Lochotin district

All data available – CAD road graph– Detectors data– Traffic lights data

Static structure of the map– Already created– Testing and adapting

Page 34: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Cooperation with Pilsen

Available data– Static CAD Data– Detectors data– Traffic ligths data

Standardization efforts– Connect city data through the juts id– Convert data to more standard format

Page 35: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Cooperation with Pilsen

DAT Std.description in XML

Excel

XML

Generator Editor

Map Editor

JUTS simulation

system

Page 36: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Data standards

Segment data standards– Definition of ID– Definition of connections

Generator data standard– Time organized XML structure for specific

detector (i.e. traffic lane)

Page 37: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Conclusions

Division of project still in progress, communication needed

Project parts separation speed-up project development

Good cooperation with Pilsen Data standardization

Page 38: Project JUTS – Urban Traffic Simulation System David Hartman  DSS 2004

Future work

Lochotin district simulation and simulator verification

Characteristic visualization Map structure and generator data

standardization Other features and performance