Commit b2e2b4e4 authored by Benedikt Zoennchen's avatar Benedikt Zoennchen
Browse files

Merge branch 'master' into dev/MeshPlotting

parents 71330c22 f6b29a65
......@@ -28,15 +28,20 @@ import java.util.concurrent.atomic.AtomicInteger;
* Implementation of group behavior model described in 'Pedestrian Group Behavior in a Cellular
* Automaton' (bib-key: seitz-2014)
* Automaton' (bib-key: seitz-2014). The basic idea from seitz-2014:
* <quote>
* Firstly members walking ahead slow down and members falling behind slightly speed up to reach the group.
* </quote>
* Agents which are added to the topography (before the simulation starts) are assigned to
* groups directly in the {@link #preLoop(double)}. Agents which are spawned later on, are
* assigned to groups in the callback {@link #elementAdded(Pedestrian)}. The actual behavior
* of the central group model is implemented in the helper class {@link CentroidGroup}.
public class CentroidGroupModel extends AbstractGroupModel<CentroidGroup> {
private static Logger logger = Logger.getLogger(CentroidGroupModel.class);
private Random random;
// private Map<Pedestrian, CentroidGroup> pedestrianGroupMap;
private LinkedHashMap<Integer, CentroidGroup> groupsById;
private Map<Integer, LinkedList<CentroidGroup>> sourceNextGroups;
private Map<Integer, GroupSizeDeterminator> sourceGroupSizeDeterminator;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment