Commit 1f68e52b authored by Sophie Schönherr's avatar Sophie Schönherr
Browse files

fix: change speed of edges

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