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
b5862a04
Commit
b5862a04
authored
May 05, 2020
by
Julian Zobel
Browse files
Sysout remove
parent
4be49a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/local/RealWorldStreetsMovement.java
View file @
b5862a04
...
...
@@ -247,12 +247,8 @@ public class RealWorldStreetsMovement extends AbstractLocalMovementStrategy {
if
(
allowAlternativeRoutes
&&
rsp
.
hasAlternatives
()
&&
rsp
.
getBest
().
getDistance
()
>
50
)
{
// alternative route is taken with a certain chance
if
(
random
.
nextDouble
()
<=
probabilityForAlternativeRoute
)
{
List
<
PathWrapper
>
paths
=
rsp
.
getAll
();
List
<
PathWrapper
>
paths
=
rsp
.
getAll
();
int
pick
=
random
.
nextInt
(
paths
.
size
()
-
1
)
+
1
;
System
.
out
.
println
(
pick
+
" / "
+
paths
.
size
());
pointList
=
rsp
.
getAll
().
get
(
pick
).
getPoints
();
}
}
...
...
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