예제 #1
0
        public static DatasetStructureReport MakeStructureReport(WebSiteDocumentsSet category)
        {
            DatasetStructureReport output = new DatasetStructureReport();

            output.name = category.name;

            output.classes = 1;

            output.sites = category.Count;

            output.pages = category.CountDocumentsTotal();

            output.Compute();

            return(output);
        }
예제 #2
0
        public static DatasetStructureReport MakeStructureReport(IEnumerable <WebSiteDocumentsSet> dataset, String _name)
        {
            DatasetStructureReport output = new DatasetStructureReport();

            output.name = _name;

            foreach (var ds in dataset)
            {
                DatasetStructureReport ds_output = MakeStructureReport(ds);
                output.Plus(ds_output);
                output.Children.Add(ds_output);
            }

            output.Compute();

            return(output);
        }