You are on page 1of 6

INDEX

Title 1. Introduction 2. Why Road Simulation 3. Abstract 4. Entity States 5. Input Specification 6. Design & Data Structure 7. Data Structure 8. Output Page No. 2 2 2 3 3 4 5 6

It gives us the information about the traffic intensity on a section of road. resources. Entity:-An entity designates a single unit of traffic. or for that matter. Thus comes the idea of simulation of road. any transportation system. to measure the consequences of collisions. This information can be used to improve traffic control. Road simulation is the simulation of roads with an intention to be able to better help plan. Abstract Design module consist of how the Event simulation works. to avoid traffic jams. such an experiment cannot ever be allowed for the amount of inconvenience it would cause to the people. It becomes crucial to build models of traffic flow that capture the characteristics of real traffic yet sufficiently simple to understand. a) Entering in the system b) Changing the lane c) Leaving the system d) Signaling • Entering the system: Entry of the entity through main entrance or secondary entrance will change the state of the system. Why Road Simulation? Imagine doing a real life experiment with city blocks and highway system which are emptied for that specific purpose for a day. Lane change is done by checking . especially with today's ever increasing congestion on our road networks. entity states. exit points. entities. That would be too costly and even with sufficient budget. Events:-An event is a happening that changes the state of the system. entry points. Adaptive control of road space over time is the principal advantage of using Road Simulation System. it includes discrete event system. on computers as numerical simulation. has to be performed virtually. design and operate roads.Road Simulation Introduction Road Simulator has an important role in meeting future transport objectives. etc. therefore. The study of road and its traffic flow. • Changing the lane: This event is triggered in cases where the traffic ahead of the vehicle in the current lane is more compared to the next lane.

Each entry point maintaining the number of entity entered and left the system. it will represent traffic that can be handled by the road at a time. between the vehicle just ahead and behind of the vehicle in discussion in the next lane. Entry Time. Lane. all the data associated with entity can be retrieved using this unique. exit point. Entry Point. truck etc . All vehicles that are entering the section of road being simulated will have the following attributes. 2) Entity Type: This will define the particular entity such as car. Speed. . Exit Point. Entity states • • Waiting state – Entity is waiting for other traffic to clear for entering in the road Processing State – Entity is on the road travelling towards its exit point. dynamic generation of vehicles is done which then enter the road from various possible entry points. Here. it helps in finding the time spent by the entity. Entity ID. 3) Entry Time: This will be useful in the analysis of the system. The system provides different entry and exit point from where entity can enter/exit the system . So higher resources available means higher traffic handling capacity of the road. Leaving the system: When an entity leaves the system.• • for a threshold value of the distance and speed. this event will change the state of the system. Entity Type.An entity can use any use any entry/exit point for the service. Signaling: Whenever the vehicle wants to change the lane or want to enter the main road from side tunnel then the vehicle would give the signal to other vehicle so that the other vehicle could stop and it could move on. speed of the entity (blocks/unit time). Each entity posses it’s entry point.Entity type will be helpful in deciding the space required by the entity on the system (road). Input Specification Random. 4) Entry point: It represents the location where entity will enter. Resources: Total number of services that can be provided by the system depends on the number of resources present in the system. 1) Entity ID: This ID will be helpful for the identification for the entity.

6) Maximum allowed speed: This is the upper bound on the speed of any entity. Design & Data Structure (Sample Model of Road) We are simulating traffic problem. ENRTY AT THE MAIN ENTRY When an entity enters from the main entry. every entity allowed to have velocity less than or equal to this velocity. it check for the traffic in the lanes of the road on the basis of traffic. Road is divided into number of blocks and each entity has size of certain number blocks.5) Speed of the entity: Speed of the entity will be defined in terms of blocks covered by the entity in the unit time. Otherwise every entity entering from the secondary entry will enter in lane first only. ENTRY AT THE SECONDARY ENTRIES When an entity enters from any secondary entry point then it will wait till the block corresponding to the entry point is not empty. we enter the entity in lane with the least traffic. 7) Exit point: Each entity has a desired destination which is represented as exit point. here we maintaining the road with desired number of lanes. Road has x number of entry/exit with one main entry and exit. ACCELEARTING THE SPEED .

in this case acceleration will depend on the relative speed of the two entities.then we will accelerate the speed of the entity in check. and if any entity travelling in any lane other than the lane 1 and it wants to exit from one of the secondary exits then it has to change lane to lane number one . • • data structure in which entity Insertions may be because of an entry from either of the Main/Secondary entrances (Entry Event) or because of Lane Change.1) First we check the entity in front of the entity if the distance between two entities is greater than some threshold value then we will accelerate the entity. and the distance between the entities is less than some threshold value then we will retard the speed. 2) If the relative speed between two entities (speed of entity in front of the entity in check – speed of entity in check ) is positive . . Acceleration of the entity depends on the distance between the entity and the entity next to it. Thus when it’s remaining distance is less than equal to twice of the speed entity it will be in the lane first. retardation will depend on the blocks between them. Data Structure Each lane is representing as a list can be inserted at and deleted from any position. Similarly. RETARDING THE SPEED If the relative speed between two entities (speed of entity in front of the entity in check – speed of entity in check) is negative. EXITING FROM THE SYSTEM 1) If the entity is exiting from the main exit then it will leave from the same lane as it was entered in 2) If Entity Want To Exit From The Secondary Exit:-After each unit time we decrease the attribute remaining distance of the entity by the speed of the entity. Deletions may be because of an Exit Event in which case the element is not present in any of the different data structures (since one for each lane) or may be deleted because of a Lane Change in which case the element is deleted from the corresponding data structure of the lane and inserted into the data structure of the target lane.changing of the lane occurs when the remaining distance the entity is less than some threshold value. thus we define the acceleration in term of the distance between the entities.

so we will calculate the average speed of the entity. OUTPUT For the analysis of the system.A vehicle is said to be “being serviced” if it is in any of the lists and is said to be “serviced” if it is deleted forever because of an Exit Event.This will represent the average time spent by the entity. we have to check many aspects of the system 1) Average speed of the entity:-As the speed of entity is increasing and decreasing. 2) Average number of entities present on the road:.This will show at any time number of the entities present on the road. . 3) Average time spent by the entity:.