public void update(int iRol, int iCol) { if (updateFlag == 1) { agelist a = new agelist(); itsMaxAge = 0; for (int i = 1; i < BoundedPocketStandHarvester.pCoresites[iRol, iCol].Number(); i++) { a = (agelist)BoundedPocketStandHarvester.pCoresites[iRol, iCol][i]; itsMaxAge = Math.Max(itsMaxAge, a.oldest()); } updateFlag = 0; } }
public int harvestCohorts(agelist cohorts, CohortRemovalMask mask) { int sumCut = 0; for (int age = BoundedPocketStandHarvester.pCoresites.TimeStep_Harvest; age <= 320; age += BoundedPocketStandHarvester.pCoresites.TimeStep_Harvest) { if (mask.query(age) == 1 && cohorts.query(age)) { cohorts.reset(age); sumCut += age; } } return(sumCut); }