Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
1f68e52b
Commit
1f68e52b
authored
Sep 23, 2017
by
Sophie Schönherr
Browse files
fix: change speed of edges
parent
ca8a6087
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/traci/TraciSimulationController.java
View file @
1f68e52b
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment