Commit 60c0d712 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Removed not working block of edge

parent e70a339c
......@@ -190,13 +190,6 @@ 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 {
......@@ -229,12 +222,6 @@ 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;
......@@ -694,7 +681,7 @@ public class TraciSimulationController implements VehicleController, SimulationS
execute(setMaxSpeedCommand);
RoadNetworkEdge edge = _roadNetwork.getEdge(pEdgeID);
RoadNetworkEdge edge = getRoadNetwork().getEdge(pEdgeID);
edge.setMaxSpeed(pMaxSpeed);
......
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