Commit 791dfad2 by Nepxion

修改界面

parent 8b430bfe
......@@ -217,7 +217,15 @@ public class RouterTopology extends AbstractTopology {
return node;
}
@SuppressWarnings("unchecked")
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();
TLink link = createLink(fromNode, toNode, true);
......
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