Package org.drools.planner.core.solver.scope

Examples of org.drools.planner.core.solver.scope.DefaultSolverScope


        @Override
        public void stepEnded(AbstractStepScope stepScope) {
            long timeMillisSpend = stepScope.getPhaseScope().calculateSolverTimeMillisSpend();
            if (timeMillisSpend >= nextTimeMillisThreshold) {
                DefaultSolverScope solverScope = stepScope.getPhaseScope().getSolverScope();
                long calculateCount = solverScope.getCalculateCount();
                long calculateCountInterval = calculateCount - lastCalculateCount;
                long timeMillisSpendInterval = timeMillisSpend - lastTimeMillisSpend;
                if (timeMillisSpendInterval == 0L) {
                    // Avoid divide by zero exception on a fast CPU
                    timeMillisSpendInterval = 1L;
View Full Code Here

TOP

Related Classes of org.drools.planner.core.solver.scope.DefaultSolverScope

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.