Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Study in Creating Computational Models of Traffic.

Similar presentations


Presentation on theme: "A Study in Creating Computational Models of Traffic."— Presentation transcript:

1 A Study in Creating Computational Models of Traffic

2 Background Information

3 Why? Traffic in Today's World Complicated Decision Making

4 Types of Traffic Simulation Microscopic vs. Macroscopic Event based vs Time based Random Data vs Actual Data

5 My Simulation with MASON

6 Hierarchy WorldWithUI Car World Street Intersection

7 World jobs Using wrapper file worldwithUI creates animation Creates all Cars, Streets, and layouts world Schedules Timer

8 World's Data Members Land  actual representation of the environment  used when actually moving the Cars World  the double matrix layout of how the streets intersect

9 Unique Token Objects Object ObjectGreen ObjectRed ObjectBlue

10 Street Jobs Checks through entire area of street Finds cars starting at the end of the street and working back Removes all the Cars from myArea that have been moved to a new street

11 Street's Data Members My Area  The actual layout of where the actual cars are  myWidth – length of road  myHeight – number of lanes the road is

12 Car Jobs Where Cars interact with each other Determine if they should change their speed or their lane according to the orientation of the cars around Finds out location both on street and in world from parent classes

13 Car Data Members myAttitude – number 0 -40 whether aggressive or not myXdir – actual speed of the car Loco – location of street Location – location on street Locax – actual location in world Newloc – new location after moving xdir

14 Actual Results or Phases

15 One Dimensional Movement Just as it sounds, the original step of making the cars move down a street at a constant speed to the end of the track and then off.

16 Speed Changes as Reactions to the Environment The phase was based on the original creation of the cars abilities to orientate themselves to their environment and use that data to decide whether to speed up or slow down

17 Changing Lanes Changing lanes seemed to be an easy task mainly because each street had a number of lanes set its height of its data member myArea.

18 Cars Stopping at the End of Roads This method seemed out of place but it was the creation of an algorithm that would have the cars stop at the end of the road.

19 Continuous Flow of Traffic This phase was perhaps one my first real triumphs which was creating a method that enabled the program for many turns and have cars continuously flow.

20 Flow Changing by Turns This phase was based on the idea of having turns which were kept track of and during certain periods of time the volume of traffic would increase and decrease like normal days. Early on Around turn 300

21 Two Directions of Traffic This phase resulted in having traffic flow in both the east to west direction and the west to east direction.

22 Lane to Lane Interaction This phase dealt with how to change cars to different streets while accounting for where the cars were and moving their tokens accordingly.

23 Creating Unique Tokens This phase was more about making the animation easier to understand then making the program more exact. Thus I had to create three extensions of the Object class: ObjectRed, ObjectBlue, and ObjectGreen.

24 Creating the Intersection Class I decided to create an intersection class that along with having to move cars across its area, it has to keep track of the lights of 8 different joining streets.

25 Four Way Traffic This phase allowed the flow of traffic to go in the North to South direction as well as the South to North direction.

26 In Short My project is a tool for research although not research in itself

27 The END


Download ppt "A Study in Creating Computational Models of Traffic."

Similar presentations


Ads by Google