Package org.optaplanner.examples.examination.domain

Examples of org.optaplanner.examples.examination.domain.Examination


        return (Examination) solutionBusiness.getSolution();
    }

    public void resetPanel(Solution solution) {
        roomsPanel.reset();
        Examination examination = (Examination) solution;
        refreshMaximums(examination);
        defineGrid(examination);
        fillCells(examination);
        institutionParametrizationEditAction.setEnabled(true);
        repaint(); // Hack to force a repaint of TimeTableLayout during "refresh screen while solving"
View Full Code Here


        private Map<Topic, Set<Topic>> coincidenceMap;
        private Map<Topic, Set<Topic>> exclusionMap;
        private Map<Topic, Set<Topic>> afterMap;

        public Solution readSolution() throws IOException {
            examination = new Examination();
            examination.setId(0L);

            readTopicListAndStudentList();
            readPeriodList();
            readRoomList();
View Full Code Here

        final int frontLoadLastPeriodSize = (Integer) frontLoadLastPeriodSizeField.getValue();
        final int frontLoadPenalty = (Integer) frontLoadPenaltyField.getValue();
        setVisible(false);
        examinationPanel.doProblemFactChange(new ProblemFactChange() {
            public void doChange(ScoreDirector scoreDirector) {
                Examination examination = (Examination) scoreDirector.getWorkingSolution();
                InstitutionParametrization institutionParametrization = examination.getInstitutionParametrization();
                scoreDirector.beforeProblemFactChanged(institutionParametrization);
                institutionParametrization.setTwoInARowPenalty(twoInARowPenalty);
                institutionParametrization.setTwoInADayPenalty(twoInADayPenalty);
                institutionParametrization.setPeriodSpreadLength(periodSpreadLength);
                institutionParametrization.setPeriodSpreadPenalty(periodSpreadPenalty);
View Full Code Here

TOP

Related Classes of org.optaplanner.examples.examination.domain.Examination

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.