import org.drools.planner.examples.examination.solver.move.PeriodChangeMove;
public class PeriodChangeMoveFactory implements MoveListFactory {
public List<Move> createMoveList(Solution solution) {
Examination examination = (Examination) solution;
List<Period> periodList = examination.getPeriodList();
List<Move> moveList = new ArrayList<Move>();
for (Exam exam : examination.getExamList()) {
if (exam.isCoincidenceLeader()) {
for (Period period : periodList) {
moveList.add(new PeriodChangeMove(exam, period));
}
}