public int query()
 {
     if (mask.query())
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
Пример #2
0
        public int harvestCohorts(Landis.Extension.Succession.Landispro.agelist cohorts, CohortRemovalMask mask)
        {
            int sumCut = 0;

            for (int age = BoundedPocketStandHarvester.pCoresites.TimeStepHarvest; age <= 320; age += BoundedPocketStandHarvester.pCoresites.TimeStepHarvest)
            {
                if (mask.query(age) == 1 && cohorts.query(age))
                {
                    cohorts.reset(age);
                    sumCut += age;
                }
            }
            return(sumCut);
        }