Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
791dfad2
Commit
791dfad2
authored
Aug 09, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改界面
parent
8b430bfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
+8
-0
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
View file @
791dfad2
...
@@ -217,7 +217,15 @@ public class RouterTopology extends AbstractTopology {
...
@@ -217,7 +217,15 @@ public class RouterTopology extends AbstractTopology {
return
node
;
return
node
;
}
}
@SuppressWarnings
(
"unchecked"
)
private
void
addLink
(
TNode
fromNode
,
TNode
toNode
,
RouterEntity
routerEntity
)
{
private
void
addLink
(
TNode
fromNode
,
TNode
toNode
,
RouterEntity
routerEntity
)
{
List
<
TLink
>
links
=
TElementManager
.
getLinks
(
dataBox
);
for
(
TLink
link
:
links
)
{
if
(
link
.
getFrom
()
==
fromNode
&&
link
.
getTo
()
==
toNode
)
{
return
;
}
}
int
weight
=
routerEntity
.
getWeight
();
int
weight
=
routerEntity
.
getWeight
();
TLink
link
=
createLink
(
fromNode
,
toNode
,
true
);
TLink
link
=
createLink
(
fromNode
,
toNode
,
true
);
...
...
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