Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit e9f110be authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

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