In pedestrian flow models, the services define a group of similar physical service objects (turnstiles, ticket vending machines, security checkpoints, check-in counters, and so on).
There are two types of space markup shapes that you can use to draw services in your pedestrian model:
Service with Area — Use this to define a service with an electronic queue (such as a bank teller, railway station information desk, and so on). Pedestrians do not stand in a queue line, but wait for their turn in the adjacent area. The area is defined by a polygonal node.
Service with Lines — Use this to define a service with a queue where pedestrians wait in a queue line until the service becomes available. Two types of queues are supported: standard queues lines, and a “serpentine” queue typically used in airport check-in areas.
You first draw a service in the graphical editor, then add the PedServicePedestrian Library block to your flowchart. Finally, you specify the name of the service markup shape in the appropriate property of the PedService block.
There are two types of services — Linear and Point:
-
Linear service defines a line, along which pedestrians should move. A pedestrian enters the service at the start point of the line and then moves to the end point before leaving the service.
When the pedestrian approaches the service, the service becomes assigned and treated by other pedestrians as occupied. The pedestrian goes to the start of the line and waits for the specified delay. Then the pedestrian moves to the end of the line. The recovery phase begins when the pedestrian either finishes the service (Wait for pedestrian to exit is off) or passes the end point of the line. The duration of the recovery phase is defined by recovery delay. After recovery, the service becomes idle and ready to accept new pedestrians. - Point service defines a point, where pedestrians should stay on for the service delay time. When a pedestrian approaches the service, the service becomes assigned and treated as occupied by other pedestrians. The pedestrian goes to a random point on the line and starts waiting there for the specified delay. The recovery phase starts when the pedestrian finishes the service. The duration of the recovery phase is defined by recovery delay. After recovery, the service becomes idle and ready to accept new pedestrians.
When passing through services with lines, a group of pedestrians may behave differently.
The behaviors are:
- All group members are serviced individually — Each member of the group should be serviced individually. An example of such a service is turnstiles.
- Only one group member is serviced, others wait in a queue — An example is a family buying movie tickets at the counter. All the family members wait in a queue to choose the seats together, but only one of them — the head of the family — pays and gets serviced.
- Only one group member is serviced, others wait in a waiting area — An example is a tourist group buying museum tickets. The tourists do not wait in the queue, they just wait for their guide to buy the tickets for the whole group. They will wait in the waiting area if you select the Waiting area for groups option in the Service With Lines properties.
You can select one of three alternative behavior modes in the flowchart block that creates pedestrian groups (it can be PedSource, PedEnter, or PedGroupAssemble), and even change the group servicing settings in the properties of some specific service with lines.
Demo model: Group Behavior in Services Open the model page in AnyLogic Cloud. There you can run the model or download it (by clicking Model source files). Demo model: Group Behavior in ServicesOpen the model in your AnyLogic desktop installation.-
How can we improve this article?
-