public abstract class AbstractSolverPhaseScope extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bestSolutionStepIndex |
protected org.slf4j.Logger |
logger |
protected DefaultSolverScope |
solverScope |
protected Score |
startingScore |
protected long |
startingSystemTimeMillis |
Constructor and Description |
---|
AbstractSolverPhaseScope(DefaultSolverScope solverScope) |
Modifier and Type | Method and Description |
---|---|
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() |
protected final transient org.slf4j.Logger logger
protected final DefaultSolverScope solverScope
protected long startingSystemTimeMillis
protected Score startingScore
protected int bestSolutionStepIndex
public AbstractSolverPhaseScope(DefaultSolverScope solverScope)
public DefaultSolverScope getSolverScope()
public long getStartingSystemTimeMillis()
public Score getStartingScore()
public int getBestSolutionStepIndex()
public void setBestSolutionStepIndex(int bestSolutionStepIndex)
public abstract AbstractStepScope getLastCompletedStepScope()
public void reset()
public SolutionDescriptor getSolutionDescriptor()
public ScoreDefinition getScoreDefinition()
public long calculateSolverTimeMillisSpend()
public long calculatePhaseTimeMillisSpend()
public ScoreDirector getScoreDirector()
public Solution getWorkingSolution()
public int getWorkingEntityCount()
public int getWorkingValueCount()
public Score calculateScore()
public void assertExpectedWorkingScore(Score expectedWorkingScore, Object completedAction)
public void assertWorkingScoreFromScratch(Score workingScore, Object completedAction)
public Random getWorkingRandom()
public boolean isBestSolutionInitialized()
public Score getBestScore()
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.