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
9b42d951
Commit
9b42d951
authored
Nov 24, 2020
by
Julian Zobel
Browse files
JSONAttractionGenetor: NO Longer considers maximum radius
parent
99d40599
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/attraction/JSONAttractionGenerator.java
View file @
9b42d951
...
...
@@ -137,15 +137,8 @@ public class JSONAttractionGenerator extends AbstractAttractionProvider {
}
// AP radius
if
(
allPOI
.
getJSONObject
(
i
).
getJSONObject
(
"tags"
).
has
(
"radius"
))
{
double
radius
=
allPOI
.
getJSONObject
(
i
).
getJSONObject
(
"tags"
).
getDouble
(
"radius"
);
if
(
maximumRadius
==
-
1
)
{
ap
.
setRadius
(
radius
);
}
else
{
ap
.
setRadius
(
Math
.
min
(
maximumRadius
,
radius
));
}
if
(
allPOI
.
getJSONObject
(
i
).
getJSONObject
(
"tags"
).
has
(
"radius"
))
{
ap
.
setRadius
(
allPOI
.
getJSONObject
(
i
).
getJSONObject
(
"tags"
).
getDouble
(
"radius"
));
}
if
(
allPOI
.
getJSONObject
(
i
).
getJSONObject
(
"tags"
).
has
(
"pauseTimeMin"
)
&&
allPOI
.
getJSONObject
(
i
).
getJSONObject
(
"tags"
).
has
(
"pauseTimeMax"
))
{
...
...
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