Beispiel #1
0
 public void CreateFromFibTreeAndNormalize(FibTree tree)
 {
     Root = new FibTreeNode(null);
     Labels.Clear();
     copyNodeAndChildrens(Root, tree.Root);
     normalize();
     TreeChanged?.Invoke();
 }
Beispiel #2
0
 public Lookup(FibTree tree, string ip)
 {
     this.tree    = tree;
     this.ip      = ip;
     NextHop      = null;
     SolutionNode = null;
     _lookup(tree.Root, IpConverter.IpToBinary(ip));
 }
Beispiel #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();
        }
 public void CreateFromFibTree(FibTree tree)
 {
     entries.Clear();
     addTreeNodeAndChildren(tree.Root);
     CollectionChanged?.Invoke();
 }