Examples of RoomChangeMove


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

                    "Select period and room", JOptionPane.OK_CANCEL_OPTION);
            if (result == JOptionPane.OK_OPTION) {
                Period toPeriod = (Period) periodListField.getSelectedItem();
                solutionBusiness.doMove(new PeriodChangeMove(lecture, toPeriod));
                Room toRoom = (Room) roomListField.getSelectedItem();
                solutionBusiness.doMove(new RoomChangeMove(lecture, toRoom));
                solverAndPersistenceFrame.resetScreen();
            }
        }
View Full Code Here

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

        CurriculumCourseSchedule schedule = (CurriculumCourseSchedule) solution;
        List<Room> roomList = schedule.getRoomList();
        List<Move> moveList = new ArrayList<Move>();
        for (Lecture lecture : schedule.getLectureList()) {
            for (Room room : roomList) {
                moveList.add(new RoomChangeMove(lecture, room));
            }
        }
        return moveList;
    }
View Full Code Here

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

                    "Select period and room", JOptionPane.OK_CANCEL_OPTION);
            if (result == JOptionPane.OK_OPTION) {
                Period toPeriod = (Period) periodListField.getSelectedItem();
                solutionBusiness.doMove(new PeriodChangeMove(lecture, toPeriod));
                Room toRoom = (Room) roomListField.getSelectedItem();
                solutionBusiness.doMove(new RoomChangeMove(lecture, toRoom));
                workflowFrame.updateScreen();
            }
        }
View Full Code Here

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

                    "Select period and room", JOptionPane.OK_CANCEL_OPTION);
            if (result == JOptionPane.OK_OPTION) {
                Period toPeriod = (Period) periodListField.getSelectedItem();
                solutionBusiness.doMove(new PeriodChangeMove(lecture, toPeriod));
                Room toRoom = (Room) roomListField.getSelectedItem();
                solutionBusiness.doMove(new RoomChangeMove(lecture, toRoom));
                solverAndPersistenceFrame.resetScreen();
            }
        }
View Full Code Here

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

        CurriculumCourseSchedule schedule = (CurriculumCourseSchedule) solution;
        List<Room> roomList = schedule.getRoomList();
        List<Move> moveList = new ArrayList<Move>();
        for (Lecture lecture : schedule.getLectureList()) {
            for (Room room : roomList) {
                moveList.add(new RoomChangeMove(lecture, room));
            }
        }
        return moveList;
    }
View Full Code Here

Examples of org.drools.planner.examples.examination.solver.move.RoomChangeMove

            }
            for (Room room : roomList) {
                long distance = calculateShortestDistance(
                        room.getId(), exam.getRoom().getId(), roomList.size());
                if (distance == roomJump) {
                    moveList.add(new RoomChangeMove(exam, room));
                }
            }
        }
        periodJump++;
        if (periodJump >= (periodList.size() / 2)) {
View Full Code Here

Examples of org.drools.planner.examples.examination.solver.move.RoomChangeMove

        Examination examination = (Examination) solution;
        List<Room> roomList = examination.getRoomList();
        List<Move> moveList = new ArrayList<Move>();
        for (Exam exam : examination.getExamList()) {
            for (Room room : roomList) {
                moveList.add(new RoomChangeMove(exam, room));
            }
        }
        return moveList;
    }
View Full Code Here

Examples of org.drools.planner.examples.examination.solver.move.RoomChangeMove

            }
            for (Room room : roomList) {
                long distance = calculateShortestDistance(
                        room.getId(), exam.getRoom().getId(), roomList.size());
                if (distance <= ROOM_JUMP) {
                    moveList.add(new RoomChangeMove(exam, room));
                }
            }
        }
        return moveList;
    }
View Full Code Here

Examples of org.drools.planner.examples.examination.solver.move.RoomChangeMove

                    "Select period and room", JOptionPane.OK_CANCEL_OPTION);
            if (result == JOptionPane.OK_OPTION) {
                Period toPeriod = (Period) periodListField.getSelectedItem();
                solutionBusiness.doMove(new PeriodChangeMove(exam, toPeriod));
                Room toRoom = (Room) roomListField.getSelectedItem();
                solutionBusiness.doMove(new RoomChangeMove(exam, toRoom));
                solverAndPersistenceFrame.resetScreen();
            }
        }
View Full Code Here

Examples of org.drools.planner.examples.examination.solver.move.RoomChangeMove

                    "Select period and room", JOptionPane.OK_CANCEL_OPTION);
            if (result == JOptionPane.OK_OPTION) {
                Period toPeriod = (Period) periodListField.getSelectedItem();
                solutionBusiness.doMove(new PeriodChangeMove(exam, toPeriod));
                Room toRoom = (Room) roomListField.getSelectedItem();
                solutionBusiness.doMove(new RoomChangeMove(exam, toRoom));
                workflowFrame.updateScreen();
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.