This block allows to define rules and/or restrictions on pedestrians being inside some particular area. Allows to modify pedestrians speed and define maximum speed.
You can define the throughput for the area: maximum number of pedestrians that can enter the area per model time unit (the model time unit is set up in the general properties of the model). This can be needed e.g. to model a revolving door.
Demo model: Sloped Area
You can use PedAreaDescriptor block to define how pedestrian speed changes when they are on the staircase (defined with a sloped area):
Demo model: Stairs
double area() - Returns area of this area, in square meters.
double density() - Returns average value for density inside the area, measured in pedestrians per square meter.
boolean isOpen() - Returns true or false depending on whether area is open or closed.
void setOpen(boolean isOpen) - Controls area border to make it penetrable by pedestrian from outside area. Setting parameter to true opens area. Setting parameter to false closes area.
boolean contains(T ped) - Returns true, if the area contains the specified pedestrian, otherwise returns false.
int size() - Returns number of pedestrians inside the area.
Set<T> getPeds() - Returns a non-modifiable collection of pedestrians currently located in this block.