/** * 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); }
@Override public void notifyReplanning(final ReplanningEvent event) { strategyManager.run(population, event.getIteration(), replanningContextProvider.get()); }
1 ); manager.run( population , 1 , null ); counter.printCounter();
manager.run(population, injector.getInstance(ReplanningContext.class));