public int query() { if (mask.query()) { return(1); } else { return(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); }