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

Commit e9f110be authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier

In "OptimalStepsModel.java", deleted unused event handling code.

parent 7288e987
......@@ -287,34 +287,11 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel, Dynami
@Override
public void update(final double simTimeInSec) {
// TODO: handle each pedestrian individually based on its "mostImportantEvent".
double timeStepInSec = simTimeInSec - this.lastSimTimeInSec;
updateSchemeOSM.update(timeStepInSec, simTimeInSec);
lastSimTimeInSec = simTimeInSec;
}
private void handleElapsedTimeEvent(final Event event) {
if (!(event instanceof ElapsedTimeEvent)) {
throw new IllegalArgumentException("Wrong event type passed, expected: " + ElapsedTimeEvent.class.getName());
}
update(event.getTime());
}
private void handleWaitEvent(final Event event) {
if (!(event instanceof WaitEvent)) {
throw new IllegalArgumentException(String.format("Wrong event type passed, expected: %s", WaitEvent.class.getName()));
}
Collection<PedestrianOSM> pedestrians = topography.getElements(PedestrianOSM.class);
for (PedestrianOSM pedestrian : pedestrians) {
pedestrian.setTimeOfNextStep(pedestrian.getTimeOfNextStep() + pedestrian.getDurationNextStep());
}
this.lastSimTimeInSec = event.getTime();
}
/*
* At the moment all pedestrians also the initalPedestrians get this.attributesPedestrain!!!
*/
......
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