The Road Traffic Library contains the following blocks that you can use to define vehicle flow:
|
Car Source | Generates cars and places them at the specified location within a road network (on a road or in a parking lot). Arrivals of cars can be defined by interarrival times, arrival rate, rate schedule, arrival schedule, or inject() function calls. To create cars of a custom car type defined by user, specify the name of that car type in the New car field. |
![]() |
Car Dispose | Removes a car from the model. Use Car Dispose (not Sink or Exit) to remove cars. |
![]() |
Car Move To | The block that controls the car movement. A car can only move while it is inside a Car Move To block. When a car enters Car Move To, it calculates the path from its current location to the specified destination. The destination can be a road, parking lot, bus stop, or stop line. If the destination is a road, the car will first take the shortest route to the beginning of the road and then follow the road to the exit. If there is no way from the car’s current location to the specified destination, the car exits the block via the onWayNotFound port. |
![]() |
Car Enter | Together with Car Exit, this block is used to model part of the car movement at a higher abstraction level, that is, without detailed physical level road traffic modeling. |
![]() |
Car Exit | Removes the car from the road network and passes the car agent into the regular Process Modeling Library flowchart where it can go through delays, queues, decisions, etc. Together with CarEnter, this block is used to model part of the car movement on a higher abstraction level, namely without detailed physical-level road traffic modeling. |
![]() |
Traffic Light | Simulates the traffic light (also known as traffic signal, traffic semaphore, signal light, stop light) — signaling device placed at road intersections, pedestrian crossings, and other locations to control conflicting flows of traffic. Controls car traffic at specified intersections or stop lines. |
|
Road Network Descriptor | An optional block. Road Network Descriptor allows you to control all vehicles within a road network. The block allows to set actions to be executed for each car in the following cases: on entering the network, on entering the road, on changing lane, and so on. This block also enables the road density map that displays the current state of traffic jams on the roads of the network. |
-
How can we improve this article?
-




