[Bug] Agents in pedestrianEventsQueue missing
In the discrete update scheme UpdateSchemeEventDriven
, there are agents missing in pedestrianEventsQueue
.
I observe the effect in a crownet scenario, where I guide agents using ChangeTarget
stimuli.
I wondered, why some agents were not rerouted properly.
I found that in some rare cases (9 times within 500s simulation time, approximately 150 agents in the simulation), agents are not contained in pedestrianEventsQueue.
public void update(final double timeStepInSec, final double currentTimeInSec) {
clearStrides(topography);
if(!pedestrianEventsQueue.isEmpty()) {
// event driven update ignores time credits!
while (**pedestrianEventsQueue**.peek().getTimeOfNextStep() < currentTimeInSec) {
PedestrianOSM ped = pedestrianEventsQueue.poll();
update(ped, timeStepInSec, currentTimeInSec);
//System.out.println(ped.getId());
pedestrianEventsQueue.add(ped);
}
}
}
Some background information:
- I am using the CentroidGroupModel
- The effect occurs 0/1 time step after the spawning process.
Where to begin/How to fix the issue:
- Please contact me -> I will provide the crownet scenario
- Check whether this effect is caused by the group spawning process...