11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 851c2885 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier

Bugfix in "Simulation.java": "cognitionLayer.prioritizeEventsForPedestrians()"...

Bugfix in "Simulation.java": "cognitionLayer.prioritizeEventsForPedestrians()" must be called after "sourceController.udpate()" and "topographyController.update()".
parent e706f956
Pipeline #79377 failed with stages
in 76 minutes and 23 seconds
......@@ -284,9 +284,6 @@ public class Simulation {
private void updateCallbacks(double simTimeInSec) {
List<Event> events = eventController.getEventsForTime(simTimeInSec);
Collection<Pedestrian> pedestrians = topography.getElements(Pedestrian.class);
cognitionLayer.prioritizeEventsForPedestrians(events, pedestrians);
// TODO Why are target controllers readded in each simulation loop?
this.targetControllers.clear();
for (Target target : this.topographyController.getTopography().getTargets()) {
......@@ -304,6 +301,9 @@ public class Simulation {
topographyController.update(simTimeInSec);
step++;
Collection<Pedestrian> pedestrians = topography.getElements(Pedestrian.class);
cognitionLayer.prioritizeEventsForPedestrians(events, pedestrians);
for (Model m : models) {
m.update(simTimeInSec);
}
......
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