示例#1
0
 public void CreateFromFibTreeAndNormalize(FibTree tree)
 {
     Root = new FibTreeNode(null);
     Labels.Clear();
     copyNodeAndChildrens(Root, tree.Root);
     normalize();
     TreeChanged?.Invoke();
 }
示例#2
0
 public Lookup(FibTree tree, string ip)
 {
     this.tree    = tree;
     this.ip      = ip;
     NextHop      = null;
     SolutionNode = null;
     _lookup(tree.Root, IpConverter.IpToBinary(ip));
 }
示例#3
0
        public void CreateFromNormalizedFibTreeAndCompress(FibTree tree)
        {
            Root = new FibTreeNode(null);
            Labels.Clear();
            Dictionary <FibTreeNode, CompressData> compressData = new Dictionary <FibTreeNode, CompressData>();

            calculateCompressData(tree.Root, compressData);
            addChildrenWithStride(Root, tree.Root, compressData);
            TreeChanged?.Invoke();
        }
示例#4
0
 public void CreateFromFibTree(FibTree tree)
 {
     entries.Clear();
     addTreeNodeAndChildren(tree.Root);
     CollectionChanged?.Invoke();
 }