OptaPlanner core 6.0.0.CR2

org.optaplanner.core.impl.phase
Class AbstractSolverPhaseScope

java.lang.Object
  extended by org.optaplanner.core.impl.phase.AbstractSolverPhaseScope
Direct Known Subclasses:
BruteForceSolverPhaseScope, ConstructionHeuristicSolverPhaseScope, CustomSolverPhaseScope, LocalSearchSolverPhaseScope

public abstract class AbstractSolverPhaseScope
extends Object


Field Summary
protected  int bestSolutionStepIndex
           
protected  org.slf4j.Logger logger
           
protected  DefaultSolverScope solverScope
           
protected  Score startingScore
           
protected  long startingSystemTimeMillis
           
 
Constructor Summary
AbstractSolverPhaseScope(DefaultSolverScope solverScope)
           
 
Method Summary
 void assertExpectedUndoMoveScore(Move move, Move undoMove)
           
 void assertExpectedWorkingScore(Score expectedWorkingScore, Object completedAction)
           
 void assertWorkingScoreFromScratch(Score workingScore, Object completedAction)
           
 long calculatePhaseTimeMillisSpend()
           
 Score calculateScore()
           
 long calculateSolverTimeMillisSpend()
           
 Score getBestScore()
           
 int getBestSolutionStepIndex()
           
abstract  AbstractStepScope getLastCompletedStepScope()
           
 ScoreDefinition getScoreDefinition()
           
 ScoreDirector getScoreDirector()
           
 SolutionDescriptor getSolutionDescriptor()
           
 DefaultSolverScope getSolverScope()
           
 Score getStartingScore()
           
 long getStartingSystemTimeMillis()
           
 int getWorkingEntityCount()
           
 List<Object> getWorkingEntityList()
           
 Random getWorkingRandom()
           
 Solution getWorkingSolution()
           
 int getWorkingValueCount()
           
 boolean isBestSolutionInitialized()
           
 void reset()
           
 void setBestSolutionStepIndex(int bestSolutionStepIndex)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractSolverPhaseScope

public AbstractSolverPhaseScope(DefaultSolverScope solverScope)
Method Detail

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()

calculateSolverTimeMillisSpend

public long calculateSolverTimeMillisSpend()

calculatePhaseTimeMillisSpend

public long calculatePhaseTimeMillisSpend()

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()

toString

public String toString()
Overrides:
toString in class Object

OptaPlanner core 6.0.0.CR2

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.