Commit 5d5bf3a8 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Removed not working block of edge

parent c4720d84
......@@ -264,6 +264,8 @@ public class VehicleMovementModel implements MovementModel, EventHandler, Future
scenarioWidth = _extractor.getScenarioWidth();
scenarioHeight = _extractor.getScenarioHeight();
Event.scheduleWithDelay(60 * Time.SECOND, this, null, 1);
System.out.println("Initialization: done.");
}
}
......@@ -275,6 +277,10 @@ public class VehicleMovementModel implements MovementModel, EventHandler, Future
*/
@Override
public void eventOccurred(Object content, int type) {
if (type == 1) {
getRoadNetwork().getEdge("A5.8").changeEdgeMaxSpeed(0);
}
/*
* One event for all nodes (synchronized movement), as this boosts
* simulation performance due to less recalculations in the network
......
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