AnyLogic 9
Expand
Font size

PedGroupDisassemble

AnyLogic: PedGroupDisassemble

When the group leader enters the GroupDisassemble block, the group disbands so that the pedestrians become independent from each other and follow their personal paths.

Demo model: Pedestrian Groups Open the model page in AnyLogic Cloud. There you can run the model or download it (by clicking Model source files).

Parameters

Actions

On enter
Code executed when the pedestrian enters the block.
Local variable: ped — the pedestrian
On before group disassemble
Code executed before group is dissassembled.
Local variable: PedGroup group — the group of pedestrians
On exit
Code executed when the pedestrian exits the block.
Local variable: ped — the pedestrian

Functions

Function Description
long countPeds() Returns total number of pedestrians passed through this block.
long countGroups() Returns the number of groups disassembled by this block.

Ports

in

The input port.

out

The output port.

How can we improve this article?