Examples of PeriodHardConstraintType


Examples of org.drools.planner.examples.examination.domain.PeriodHardConstraintType

                if (lineTokens.length != 3) {
                    throw new IllegalArgumentException("Read line (" + line + ") is expected to contain 3 tokens.");
                }
                Topic leftTopic = topicList.get(Integer.parseInt(lineTokens[0]));
                periodHardConstraint.setLeftSideTopic(leftTopic);
                PeriodHardConstraintType periodHardConstraintType = PeriodHardConstraintType.valueOf(lineTokens[1]);
                periodHardConstraint.setPeriodHardConstraintType(periodHardConstraintType);
                Topic rightTopic = topicList.get(Integer.parseInt(lineTokens[2]));
                periodHardConstraint.setRightSideTopic(rightTopic);
                if (periodHardConstraintType == PeriodHardConstraintType.EXAM_COINCIDENCE) {
                    // It's not specified what happens
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.