/** * Randomly chooses for each person of the population a strategy and uses that * strategy on the person, after adapting the strategies to any pending change * requests for the specified iteration. * * @param iteration the current iteration we're handling */ public final void run(final Population population, final int iteration, final ReplanningContext replanningContext) { // (this is not directly delegated since the run method of this StrategyManager includes two "hooks"). delegate.handleChangeRequests(iteration); run(population, replanningContext); }
/** * Randomly chooses for each person of the population a strategy and uses that * strategy on the person, after adapting the strategies to any pending change * requests for the specified iteration. * * @param iteration the current iteration we're handling */ public final void run( final Iterable<? extends HasPlansAndId<PL, AG>> persons, ObjectAttributes subpopLookup, final int iteration, final ReplanningContext replanningContext ) { handleChangeRequests(iteration); run(persons, subpopLookup, replanningContext); }