
The PedChangeLevel block moves the pedestrian flow from its current level to the new level.
-
The target line where pedestrians leave their current level. This target line should belong to the level the pedestrians leave.
Type: TargetLine
Local variable: T ped — the pedestrian -
The target line where pedestrians enter new level. This target line should belong to the level the pedestrians enter.
Type: TargetLine
Local variable: T ped — the pedestrian
- Reach tolerance
-
Defines range, at which pedestrian should enclose to its destination. In case of target line, distance to any point of this line is assumed.
Name: reachTolerance
Type: double
Default value: 0.25 meters
Set new value at runtime: set_reachTolerance(new value)
- On enter
-
Java code executed when the pedestrian enters the block.
Local variable: T ped — the pedestrian
- On exit level
-
Java code executed when the pedestrian exits its current level.
Local variables:
T ped — the pedestrian
Level level — the level the pedestrian exits - On enter level
-
Java code executed when the pedestrian enters the new level.
Local variables:
T ped — the pedestrian
Level level — new level the pedestrian enters - On cancel
-
Java code executed when the pedestrian exits the block via ccl port.
Local variable: T ped — the pedestrian
- On remove
-
Java code executed when a pedestrian is intentionally removed from this block by calling the block's remove() function.
Local variable: T ped — the pedestrian
| Function | Description |
|---|---|
| long countPeds() | Returns the total number of pedestrians passed through this block. |
| int size() | Returns the number of pedestrians inside the block. |
| boolean contains(Agent ped) | Returns true if the specified pedestrian is currently inside the block, and false otherwise. |
| void cancel(Agent ped) | Causes the specified pedestrian to leave the block immediately via ccl port. |
| void cancelAll() | Causes all pedestrians to leave the block immediately via ccl port. |
| Set<Agent> getPeds() | Returns a non-modifiable collection of pedestrians currently located in this block. |
- in
-
The input port.
- out
-
The output port.
- ccl
-
The output port for pedestrians leaving the block because of the “cancel” event (caused by a call of either cancel() or cancelAll() function).
-
How can we improve this article?
-