AnyLogic
Expand
Font size

PedGroupDisassemble

When group leader enters this block, group dissolves, so pedestrians become independent from each other and follow their personal paths.

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 number of groups disassembled by this block.

Ports

in

The input port.

out

The output port.

How can we improve this article?