private PicesClassList SortIntoDisplayOrder(PicesClassList l) { PicesClassList knownClasses = new PicesClassList(); PicesClassList unKnownClasses = new PicesClassList(); foreach (PicesClass pc in l) { if (ClassInClassifierClasses(pc)) { knownClasses.Add(pc); } else { unKnownClasses.Add(pc); } } knownClasses.SortByName(); unKnownClasses.SortByName(); foreach (PicesClass pc in unKnownClasses) { knownClasses.Add(pc); } return(knownClasses); }
} /* ReportByClassCollumns */ private PicesClassList BuildMLClassList() { PicesClassList mlClasses = new PicesClassList(); int cIDX; //for (cIDX = 0; cIDX < totals->end (); cIDX++) for (cIDX = 0; cIDX < totals.Count; cIDX++) { ClassTotals ct = totals[cIDX]; mlClasses.Add(PicesClassList.GetUniqueClass(ct.Name, "")); } mlClasses.SortByName(); return(mlClasses); } /* BuildMLClassList */
} /* PrintTabDelDistributionMatrix */ public void PrintTabDelDistributionMatrixesForSummaryClasses(System.IO.StreamWriter o, String majorTitle, float volume ) { PicesClassList allKnownClasses = PicesClassList.GetAllKnownClasses(); PicesClassList allSummaryClasses = allKnownClasses.ExtractSummarizeClasses(); allSummaryClasses.SortByName(); foreach (PicesClass pc in allSummaryClasses) { SizeDistribution2 familySummary = this.ExtractFamilyOfClasses(pc); if (familySummary.totals.Count > 1) { o.WriteLine(majorTitle + " *** Summary of " + pc.Name + " ***"); o.WriteLine(); familySummary.PrintTabDelDistributionMatrix(o, volume); o.WriteLine(); o.WriteLine(); } } } /* PrintTabDelDistributionMatrixesForSummaryClasses */