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
8b3f212a
Commit
8b3f212a
authored
Jan 27, 2017
by
Björn Richerzhagen
Browse files
Bugfix in 5GTopologyView: links are now updated after movement
parent
e2e596f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/FiveGTopologyView.java
View file @
8b3f212a
...
...
@@ -118,6 +118,8 @@ public class FiveGTopologyView extends AbstractTopologyView<CellLink> {
private
Set
<
String
>
groupIDsAccessPointUsage
=
new
LinkedHashSet
<>();
private
List
<
HandoverSensor5G
>
handoverSensors
=
new
LinkedList
<>();
private
List
<
CellLink
>
links
=
new
LinkedList
<>();
/**
*
...
...
@@ -245,9 +247,13 @@ public class FiveGTopologyView extends AbstractTopologyView<CellLink> {
@Override
public
void
onLocationChanged
(
Host
host
,
Location
location
)
{
super
.
onLocationChanged
(
host
,
location
);
super
.
onLocationChanged
(
host
,
location
);
if
(
lastMovementTimestamp
!=
Time
.
getCurrentTime
())
{
lastMovementTimestamp
=
Time
.
getCurrentTime
();
// Force re-assignment to cells.
for
(
CellLink
cellLink
:
links
)
{
cellLink
.
setOutdated
(
true
);
}
checkAPAssociations
();
}
}
...
...
@@ -291,6 +297,7 @@ public class FiveGTopologyView extends AbstractTopologyView<CellLink> {
getPhyType
().
getDefaultMTU
(),
mobileClient
,
cloudlets
.
contains
(
sourceIsClient
?
destination
:
source
),
mobileClientsUsingAccessPoints
.
contains
(
mobileClient
));
links
.
add
(
link
);
updateOutdatedLink
(
link
);
return
link
;
}
...
...
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