Organizes groups from sequence of pedestrians on input port. Allows defining multiple criteria for groups creation - group size, form, groups arrival rate and pedestrians interarrival delay.
Reassembles groups which have been split by PedGroupDisassemble or programmatically: pedestrians wait in the given area and leave it in their original group when the whole group arrives. Groups are reassembled independently and simultaneously, and also at the same time new groups may be organized from single pedestrians.
Demo model: Pedestrian Groups
long countPeds() - Returns total number of pedestrians passed through this block.
long countGroups() - Returns number of created groups (including the group which is currently being created).
int size() - Returns number of pedestrians currently waiting for group assembly (including the pedestrians with disabled groups, if any, which wait for their groupmates).
void cancel(Agent ped) - Interrupts command for the specified pedestrian and causes it to exit using ccl port. Setting parameter to null will cause all pedestrians to leave the block via ccl port. The cancelled pedestrian isn't added to the group. On cancel callback is called for each pedestrian leaving the block.
void cancelAll() - Interrupts command for all the pedestrians in this block and causes them to exit using ccl port. On cancel callback is called for each pedestrian leaving the block.
Agent remove(Agent agent) - Removes the specified agent from the block.