Exemple #1
0
        private MergeTree mergeTreeSetup(ClassificationFile classfFile)
        {
            if (classfFile.TreeBase.ChildCount == 0)
            {
                return(null);
            }

            MergeTree tree = new MergeTree();

            // CreateTreeBranch(tree, classfFile.TreeBase, 0);

            return(tree);
        }
Exemple #2
0
        /// <summary>
        /// populate the mergetree
        /// </summary>
        /// <param name="tree"></param>
        /// <param name="classfFile"></param>
        /// <param name="testFileList"></param>
        /// <returns></returns>
        public MergeTree MergeTreePopulate(ClassificationFile classfFile,
                                           SheetFileList testFileList)
        {
            // classfFile defines the categories and the order
            // testfilelist is the list of items to add to the merge tree

            // step 1 - setup the merge tree with all categories
            MergeTree tree = mergeTreeSetup(classfFile);

            if (tree == null)
            {
                return(null);
            }



            return(new MergeTree());
        }