Examples of BendableScoreDefinition


Examples of org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition

import org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition;

public class XStreamBendableScoreConverter extends XStreamScoreConverter {

    public XStreamBendableScoreConverter(int hardLevelsSize, int softLevelsSize) {
        super(new BendableScoreDefinition(hardLevelsSize, softLevelsSize));
    }
View Full Code Here

Examples of org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition

                    if (bendableHardLevelsSize == null || bendableSoftLevelsSize == null) {
                        throw new IllegalArgumentException("With scoreDefinitionType (" + scoreDefinitionType
                                + ") there must be a bendableHardLevelsSize (" + bendableHardLevelsSize
                                + ") and a bendableSoftLevelsSize (" + bendableSoftLevelsSize + ").");
                    }
                    return new BendableScoreDefinition(bendableHardLevelsSize, bendableSoftLevelsSize);
                case BENDABLE_BIG_DECIMAL:
                    if (bendableHardLevelsSize == null || bendableSoftLevelsSize == null) {
                        throw new IllegalArgumentException("With scoreDefinitionType (" + scoreDefinitionType
                                + ") there must be a bendableHardLevelsSize (" + bendableHardLevelsSize
                                + ") and a bendableSoftLevelsSize (" + bendableSoftLevelsSize + ").");
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.