Commit bf63a512 authored by Tobias Meuser's avatar Tobias Meuser Committed by Jose Ignacio Monreal Bailey
Browse files

Removed not working block of edge

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