PedSettings block allows specifying general parameters related to all blocks of the Pedestrian Library and allows tuning the models for a specific task in order to get maximum model performance.
This block provides an option to enable customizable social distancing between pedestrians. This may come handy when modeling pedestrian flows and service areas during pandemic or when you want to model pedestrian flow in areas with low density of population.
Moving pedestrians will strive to observe the specified social distance between each other unless the density of pedestrians is too high (e.g. in bottle-neck situations). After passing such choke points, pedestrians will resume observing the social distance.
Moving pedestrians do not observe social distance with pedestrians who wait in queues or waiting areas.
Group members do not observe social distance with each other during movement, in queues, or in waiting areas.
Pedestrians in service queues observe social distance if it is enabled. The distance is observed only along the service line. If the curves of serpentine queue are less than the specified social distance, each pedestrian will keep the distance only between themselves and two other pedestrians: in front of them and behind them. The distance between a person inside the service (servicePoint) and the queue is not observed.
Pedestrians that enter the waiting area and remain there until the waiting period is over will strive to observe social distance with each other if it is enabled. If the density of pedestrians inside the waiting area becomes too high, a new pedestrian that enters the area will ignore the social distance.
double socialDistance() - Returns social distance between pedestrians in meters.
double socialDistance(LengthUnits units) - Returns social distance between pedestrians in specified length units.
Parameter:
units - a constant defining the length units
boolean enableSocialDistance() - Checks whether social distance between pedestrians is enabled. If enabled, the function returns true. Otherwise, it returns false.
int countGroups() - Returns number of groups in this model.
int countPeds() - Returns total number of pedestrians in this model.
void selectPed(Agent ped) - Selects the pedestrian (specified via the function argument) on the animation of the running model.
void deselectPed() - Deselects the currently selected pedestrian.
Agent getSelectedPed() - Returns the currently selected pedestrian (if some pedestrian is selected at the moment, null otherwise).
Set<agent> getPeds() - Returns a non-modifiable collection of all pedestrians in the model.
Set<pedgroup> getGroups() - Returns a non-modifiable collection of all groups in the model
double pixelsToMeters(double value) - Converts the specified number of pixels to the length in meters according to the animation scale defined by this block.
double metersToPixels(double value)- Converts the specified length in meters to the number of pixels according to the animation scale defined by this block.