Commit ec43a6f9 authored by Sophie Schönherr's avatar Sophie Schönherr Committed by Jose Ignacio Monreal Bailey
Browse files

fix: change speed of edges

parent 2a8dd2cc
......@@ -201,6 +201,13 @@ public class TraciSimulationController implements VehicleController, SimulationS
@Override
public boolean nextStep() {
try {
// for (RoadNetworkEdge roadNetworkEdge : modifiedEdges) {
// SumoCommand setMaxSpeedCommand = Edge.setMaxSpeed(roadNetworkEdge.getEdgeID(), roadNetworkEdge.getOriginalMaxSpeed());
//
// execute(setMaxSpeedCommand);
// }
_connection.do_timestep();
try {
......@@ -233,6 +240,12 @@ public class TraciSimulationController implements VehicleController, SimulationS
e.printStackTrace();
}
// for (RoadNetworkEdge roadNetworkEdge : modifiedEdges) {
// SumoCommand setMaxSpeedCommand = Edge.setMaxSpeed(roadNetworkEdge.getEdgeID(), roadNetworkEdge.getMaxSpeed());
//
// execute(setMaxSpeedCommand);
// }
return true;
} catch (RuntimeException e) {
throw e;
......
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