Package org.drools.planner.core.constructionheuristic.placer.value

Examples of org.drools.planner.core.constructionheuristic.placer.value.ValuePlacer


            Termination phaseTermination, PlanningEntityDescriptor entityDescriptor) {
        ValueSelector valueSelector = valueSelectorConfig.buildValueSelector(environmentMode,
                solutionDescriptor, entityDescriptor,
                selectedCountLimit == null ? SelectionCacheType.STEP : SelectionCacheType.JUST_IN_TIME,
                selectedCountLimit == null ? SelectionOrder.ORIGINAL : SelectionOrder.RANDOM);
        ValuePlacer valuePlacer = new ValuePlacer(phaseTermination, valueSelector,
                selectedCountLimit == null ? Integer.MAX_VALUE : selectedCountLimit);
        if (environmentMode == EnvironmentMode.TRACE) {
            valuePlacer.setAssertMoveScoreIsUncorrupted(true);
        }
        if (environmentMode == EnvironmentMode.DEBUG || environmentMode == EnvironmentMode.TRACE) {
            valuePlacer.setAssertUndoMoveIsUncorrupted(true);
        }
        return valuePlacer;
    }
View Full Code Here


    public QueuedEntityPlacer buildEntityPlacer(EnvironmentMode environmentMode,
            SolutionDescriptor solutionDescriptor, Termination phaseTermination) {
        // TODO filter out initialized entities
        EntitySelector entitySelector = entitySelectorConfig.buildEntitySelector(environmentMode,
                solutionDescriptor, SelectionCacheType.JUST_IN_TIME, SelectionOrder.ORIGINAL); // TODO fix selection order
        ValuePlacer valuePlacer = valuePlacerConfig.buildValuePlacer(environmentMode,
                solutionDescriptor, phaseTermination, entitySelector.getEntityDescriptor());
        return new QueuedEntityPlacer(entitySelector, valuePlacer);
    }
View Full Code Here

TOP

Related Classes of org.drools.planner.core.constructionheuristic.placer.value.ValuePlacer

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.