public BruteForceSolutionIterator(BruteForceSolverScope bruteForceSolverScope) {
this.bruteForceSolverScope = bruteForceSolverScope; // TODO move startingSolution etc out of here
Collection<? extends Object> facts = bruteForceSolverScope.getWorkingSolution().getFacts();
for (Object fact : facts) {
PlanningVariableClass planningVariableClass = fact.getClass().getAnnotation(PlanningVariableClass.class);
if (planningVariableClass != null) {
PlanningVariableHandler planningVariableHandler = new PlanningVariableHandler(fact, planningVariableClass, facts);
list.add(planningVariableHandler);
}
}