Package org.optaplanner.core.impl.score.buildin.bendable

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


                    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

Related Classes of org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition

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.