Package org.drools.planner.examples.curriculumcourse.solver.move

Examples of org.drools.planner.examples.curriculumcourse.solver.move.LectureSwapMove


        for (ListIterator<Lecture> leftIt = lectureList.listIterator(); leftIt.hasNext();) {
            Lecture leftLecture = leftIt.next();
            for (ListIterator<Lecture> rightIt = lectureList.listIterator(leftIt.nextIndex()); rightIt.hasNext();) {
                Lecture rightLecture = rightIt.next();
                if (!leftLecture.getCourse().equals(rightLecture.getCourse())) {
                    moveList.add(new LectureSwapMove(leftLecture, rightLecture));
                }
            }
        }
        return moveList;
    }
View Full Code Here


        for (ListIterator<Lecture> leftIt = lectureList.listIterator(); leftIt.hasNext();) {
            Lecture leftLecture = leftIt.next();
            for (ListIterator<Lecture> rightIt = lectureList.listIterator(leftIt.nextIndex()); rightIt.hasNext();) {
                Lecture rightLecture = rightIt.next();
                if (!leftLecture.getCourse().equals(rightLecture.getCourse())) {
                    moveList.add(new LectureSwapMove(leftLecture, rightLecture));
                }
            }
        }
        return moveList;
    }
View Full Code Here

TOP

Related Classes of org.drools.planner.examples.curriculumcourse.solver.move.LectureSwapMove

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.