public override int harvestStand(Stand stand) { SitesCut += stand.numberOfActiveSites(); //printf("sitesinstand:%d SitesCut:%d Target:%d\n",stand->numberOfActiveSites(),SitesCut,itsTargetCut); SiteHarvester theSiteHarvester = new SiteHarvester(GetUserInputId(), getRemovalMask(), getReport(), getDuration()); MultiplePocketStandHarvester theStandHarvester = new MultiplePocketStandHarvester(stand, itsStandProportion, itsMeanGroupSize, itsStandardDeviation, theSiteHarvester); int standCut = theStandHarvester.Harvest(); if (standCut > 0) { stand.reserve(); itsStands.Add(stand.getId()); itsTotalNumberOfStands++; } return(1); }
public void reharvest() { Stand stand = new Stand(); MultiplePocketStandHarvester theStandHarvester; int standCut; SiteHarvester theSiteHarvester = new SiteHarvester(GetUserInputId(), getRemovalMask(), getReport(), getDuration()); getReport().reset(); for (int i = 0; i < itsStands.Count; i++) { // stand = stands(it.current()); Modified by Vera stand.Copy(BoundedPocketStandHarvester.pstands[itsStands[i]]); theStandHarvester = new MultiplePocketStandHarvester(stand, itsStandProportion, itsMeanGroupSize, itsStandardDeviation, theSiteHarvester); standCut = theStandHarvester.Harvest(); theStandHarvester = null; } writeReport(BoundedPocketStandHarvester.harvestOutputFile2); }