AnyLogic 9
Expand
Font size

Road Traffic Library blocks

The Road Traffic Library contains the following blocks that you can use to define vehicle flow:

CarSource 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.
CarDispose Removes a car from the model. Use CarDispose (and not Sink or Exit) to remove cars.
CarMoveTo The block that controls the car movement. A car can only move while it is inside a CarMoveTo block. When a car enters CarMoveTo, 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.
CarEnter Together with CarExit, 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.
CarExit 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.
RoadNetworkDescriptor An optional block. RoadNetworkDescriptor 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?