} /* Increment */ /// <summary> /// /// </summary> /// <param name="o">Output stream to print report to.</param> /// <param name="volume">If volume == 0.0 then prints units otherwise prints the density units/mm^3. </param> public void PrintTabDelDistributionMatrix(System.IO.StreamWriter o, float volume ) { totals.SortByName(); PrintTabDelHeader(o); ClassTotals2 classTotals = null; ClassTotals2 grandTotals = new ClassTotals2("Grand Totals", sizeInitial, sizeGrowthFactor, sizeEndRange, bucketCount, sizeBucketStart, sizeBucketEnd ); int idx; for (idx = 0; idx < totals.Count; idx++) { classTotals = totals[idx]; classTotals.PrintTabDelLine(o, volume); grandTotals.AddIn(classTotals); } o.WriteLine(); grandTotals.PrintTabDelLine(o, volume); } /* PrintTabDelDistributionMatrix */
} /* SummarizeFamilyOfClasses */ private void AddFamilyOfClassesToSizeClassTotals(ClassTotals2 summary, PicesClass ancestor ) { ClassTotals2 ct = totals.LookUp(ancestor.Name); if (ct != null) { summary.AddIn(ct); } if (ancestor.Children != null) { foreach (PicesClass pc in ancestor.Children) { AddFamilyOfClassesToSizeClassTotals(summary, pc); } } return; } /* AddFamilyOfClassesToSizeClassTotals */