org.drools.planner.core.solver.scope
Class DefaultSolverScope
java.lang.Object
org.drools.planner.core.solver.scope.DefaultSolverScope
public class DefaultSolverScope
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
restartSolver
protected boolean restartSolver
startingSystemTimeMillis
protected long startingSystemTimeMillis
scoreDirector
protected ScoreDirector scoreDirector
workingRandom
protected Random workingRandom
startingInitializedScore
protected Score startingInitializedScore
bestSolution
protected Solution bestSolution
bestUninitializedVariableCount
protected int bestUninitializedVariableCount
bestScore
protected Score bestScore
DefaultSolverScope
public DefaultSolverScope()
isRestartSolver
public boolean isRestartSolver()
getStartingSystemTimeMillis
public long getStartingSystemTimeMillis()
setStartingSystemTimeMillis
public void setStartingSystemTimeMillis(long startingSystemTimeMillis)
setRestartSolver
public void setRestartSolver(boolean restartSolver)
getScoreDirector
public ScoreDirector getScoreDirector()
setScoreDirector
public void setScoreDirector(ScoreDirector scoreDirector)
getSolutionDescriptor
public SolutionDescriptor getSolutionDescriptor()
getScoreDefinition
public ScoreDefinition getScoreDefinition()
getWorkingSolution
public Solution getWorkingSolution()
getWorkingPlanningEntityList
public List<Object> getWorkingPlanningEntityList()
calculateScore
public Score calculateScore()
assertExpectedWorkingScore
public void assertExpectedWorkingScore(Score expectedWorkingScore)
assertWorkingScoreFromScratch
public void assertWorkingScoreFromScratch(Score workingScore)
assertScore
public void assertScore(Solution solution)
getWorkingRandom
public Random getWorkingRandom()
setWorkingRandom
public void setWorkingRandom(Random workingRandom)
getStartingInitializedScore
public Score getStartingInitializedScore()
setStartingInitializedScore
public void setStartingInitializedScore(Score startingInitializedScore)
getCalculateCount
public long getCalculateCount()
getBestSolution
public Solution getBestSolution()
setBestSolution
public void setBestSolution(Solution bestSolution)
- The bestSolution must never be the same instance as the workingSolution, it should be a (un)changed clone.
- Parameters:
bestSolution
- never null
getBestUninitializedVariableCount
public int getBestUninitializedVariableCount()
setBestUninitializedVariableCount
public void setBestUninitializedVariableCount(int bestUninitializedVariableCount)
getBestScore
public Score getBestScore()
setBestScore
public void setBestScore(Score bestScore)
isBestSolutionInitialized
public boolean isBestSolutionInitialized()
calculateTimeMillisSpend
public long calculateTimeMillisSpend()
setWorkingSolutionFromBestSolution
public void setWorkingSolutionFromBestSolution()
getBestScoreWithUninitializedPrefix
public String getBestScoreWithUninitializedPrefix()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.