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
3a0945f2
Commit
3a0945f2
authored
Oct 06, 2017
by
Sophie Schönherr
Browse files
Fixed infinity-loop on simulation end
parent
5f9bb1f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/VehicleMovementModel.java
View file @
3a0945f2
...
...
@@ -279,7 +279,9 @@ public class VehicleMovementModel implements MovementModel, EventHandler, Future
long
currentTime
=
Time
.
getCurrentTime
()
/
timestepConversion
;
while
(
_controller
.
getStep
()
-
_controller
.
getStart
()
<
currentTime
)
{
_controller
.
nextStep
();
if
(!
_controller
.
nextStep
())
{
return
;
}
}
List
<
String
>
allVehicles
=
_controller
.
getAllVehicles
();
...
...
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