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
8f97b2ee
Commit
8f97b2ee
authored
Jun 27, 2016
by
Christoph Storm
Browse files
Updates to positionInformation ONLY when used Location is a
PositionVector
parent
7f3108c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/AbstractTopologyView.java
View file @
8f97b2ee
...
...
@@ -340,6 +340,14 @@ public abstract class AbstractTopologyView<L extends DefaultLink> implements
for
(
Entry
<
MacAddress
,
Boolean
>
entry
:
neighborsOutdated
.
entrySet
())
{
entry
.
setValue
(
true
);
// Fix Christoph Storm: Update positions map
// This relies on location being a PositionVector...
if
(
location
instanceof
PositionVector
&&
host
.
getNetworkComponent
().
getByName
(
phy
.
getNetInterfaceName
())
.
getLocalInetAddress
().
equals
(
macs
.
get
(
entry
.
getKey
()).
getNetId
())){
positions
.
put
(
entry
.
getKey
(),
new
PositionVector
(
(
PositionVector
)
location
));
}
}
}
}
...
...
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