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