Commit 8b3f212a authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Bugfix in 5GTopologyView: links are now updated after movement

parent e2e596f4
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment