org.optaplanner.core.impl.phase.scope
Class AbstractSolverPhaseScope
java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractSolverPhaseScope
- Direct Known Subclasses:
- BruteForceSolverPhaseScope, ConstructionHeuristicSolverPhaseScope, CustomSolverPhaseScope, LocalSearchSolverPhaseScope
public abstract class AbstractSolverPhaseScope
- extends Object
logger
protected final transient org.slf4j.Logger logger
solverScope
protected final DefaultSolverScope solverScope
startingSystemTimeMillis
protected long startingSystemTimeMillis
startingScore
protected Score startingScore
bestSolutionStepIndex
protected int bestSolutionStepIndex
AbstractSolverPhaseScope
public AbstractSolverPhaseScope(DefaultSolverScope solverScope)
getSolverScope
public DefaultSolverScope getSolverScope()
getStartingSystemTimeMillis
public long getStartingSystemTimeMillis()
getStartingScore
public Score getStartingScore()
getBestSolutionStepIndex
public int getBestSolutionStepIndex()
setBestSolutionStepIndex
public void setBestSolutionStepIndex(int bestSolutionStepIndex)
getLastCompletedStepScope
public abstract AbstractStepScope getLastCompletedStepScope()
reset
public void reset()
getSolutionDescriptor
public SolutionDescriptor getSolutionDescriptor()
getScoreDefinition
public ScoreDefinition getScoreDefinition()
calculateSolverTimeMillisSpent
public long calculateSolverTimeMillisSpent()
calculatePhaseTimeMillisSpent
public long calculatePhaseTimeMillisSpent()
getScoreDirector
public ScoreDirector getScoreDirector()
getWorkingSolution
public Solution getWorkingSolution()
getWorkingEntityCount
public int getWorkingEntityCount()
getWorkingEntityList
public List<Object> getWorkingEntityList()
getWorkingValueCount
public int getWorkingValueCount()
calculateScore
public Score calculateScore()
assertExpectedWorkingScore
public void assertExpectedWorkingScore(Score expectedWorkingScore,
Object completedAction)
assertWorkingScoreFromScratch
public void assertWorkingScoreFromScratch(Score workingScore,
Object completedAction)
assertExpectedUndoMoveScore
public void assertExpectedUndoMoveScore(Move move,
Move undoMove)
getWorkingRandom
public Random getWorkingRandom()
isBestSolutionInitialized
public boolean isBestSolutionInitialized()
getBestScore
public Score getBestScore()
getPhaseBestSolutionTimeMillis
public long getPhaseBestSolutionTimeMillis()
getNextStepIndex
public int getNextStepIndex()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.