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
bcf79843
Commit
bcf79843
authored
Jun 19, 2019
by
Julian Zobel
Browse files
Renaming
parent
1b07a2e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/transition/InAreaRoamingTransitionStrategy.java
View file @
bcf79843
...
...
@@ -54,7 +54,7 @@ public class InAreaRoamingTransitionStrategy extends AbstractAttractionBasedTran
@Override
public
void
addComponent
(
SimLocationActuator
comp
)
{
this
.
roamingStates
.
put
(
comp
,
roamingTransitionState
.
TRANSITION
);
AttractionPoint
nextAP
=
get
NewAttractionPoint
(
comp
);
AttractionPoint
nextAP
=
pick
NewAttractionPoint
(
comp
);
updateTargetAttractionPoint
(
comp
,
nextAP
);
}
...
...
@@ -119,7 +119,7 @@ public class InAreaRoamingTransitionStrategy extends AbstractAttractionBasedTran
}
private
AttractionPoint
get
NewAttractionPoint
(
SimLocationActuator
component
)
{
private
AttractionPoint
pick
NewAttractionPoint
(
SimLocationActuator
component
)
{
double
score
=
rnd
.
nextDouble
();
List
<
AttractionPoint
>
candidates
=
new
LinkedList
<>();
for
(
AttractionPoint
ap
:
IAttractionGenerator
.
attractionPoints
)
{
...
...
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