/** * chooses a (weight-influenced) random strategy * * @param person The person for which the strategy should be chosen * @return the chosen strategy */ public GenericPlanStrategy<Plan, Person> chooseStrategy(final Person person, final String subpopulation) { final GenericPlanStrategy<Plan, Person> strategy = delegate.chooseStrategy(person, subpopulation); return strategy; }
subpopName = (String) subPopLookup.getAttribute(person.getId().toString(), this.subpopulationAttributeName); GenericPlanStrategy<PL, AG> strategy = this.chooseStrategy(person, subpopName);