//---------------------------------------------------------------------

        /// <summary>
        /// Creates a new instance.
        /// </summary>
        public PartialCohortCutter(Landis.Library.SiteHarvest.ICohortSelector cohortSelector,
                                   PartialCohortSelectors partialCohortSelectors,
                                   ExtensionType extensionType)
            : base(cohortSelector, extensionType)
        {
            this.partialCohortSelectors = new PartialCohortSelectors(partialCohortSelectors);
            partialCohortCounts         = new CohortCounts();
        }
        //---------------------------------------------------------------------

        static DensityThinning()
        {
            // Force the harvest library to register its read method for age
            // ranges.  Then replace it with this project's read method that
            // handles percentages for partial thinning.
            AgeRangeParsing.InitializeClass();
            InputValues.Register <AgeRange>(DensityThinning.ReadAgeOrRange);
            treeremovals              = new Dictionary <ushort, uint>();
            CohortSelectors           = new PartialCohortSelectors();
            AdditionalCohortSelectors = new PartialCohortSelectors();
        }
Пример #3
0
        //----------------------------------------------------------------------

        /// <summary>
        /// Creates a new instance with a set of selectors.
        /// </summary>
        public PartialCohortSelectors(PartialCohortSelectors partialCohortSelectors)
            : base(partialCohortSelectors)
        {
        }