Solution_
- the solution type, the class with the PlanningSolution
annotationpublic abstract class AbstractPhaseScope<Solution_> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bestSolutionStepIndex |
protected long |
childThreadsScoreCalculationCount |
protected Long |
endingScoreCalculationCount |
protected Long |
endingSystemTimeMillis |
protected org.slf4j.Logger |
logger |
protected DefaultSolverScope<Solution_> |
solverScope |
protected Score |
startingScore |
protected Long |
startingScoreCalculationCount |
protected Long |
startingSystemTimeMillis |
Constructor and Description |
---|
AbstractPhaseScope(DefaultSolverScope<Solution_> solverScope) |
protected final transient org.slf4j.Logger logger
protected final DefaultSolverScope<Solution_> solverScope
protected Long startingSystemTimeMillis
protected Long startingScoreCalculationCount
protected Score startingScore
protected Long endingSystemTimeMillis
protected Long endingScoreCalculationCount
protected long childThreadsScoreCalculationCount
protected int bestSolutionStepIndex
public AbstractPhaseScope(DefaultSolverScope<Solution_> solverScope)
public DefaultSolverScope<Solution_> getSolverScope()
public Long getStartingSystemTimeMillis()
public Score getStartingScore()
public Long getEndingSystemTimeMillis()
public int getBestSolutionStepIndex()
public void setBestSolutionStepIndex(int bestSolutionStepIndex)
public abstract AbstractStepScope<Solution_> getLastCompletedStepScope()
public void reset()
public void startingNow()
public void endingNow()
public SolutionDescriptor<Solution_> getSolutionDescriptor()
public ScoreDefinition getScoreDefinition()
public long calculateSolverTimeMillisSpentUpToNow()
public long calculatePhaseTimeMillisSpentUpToNow()
public long getPhaseTimeMillisSpent()
public void addChildThreadsScoreCalculationCount(long addition)
public long getPhaseScoreCalculationCount()
public long getPhaseScoreCalculationSpeed()
public InnerScoreDirector<Solution_> 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 void assertPredictedScoreFromScratch(Score workingScore, Object completedAction)
public void assertShadowVariablesAreNotStale(Score workingScore, Object completedAction)
public Random getWorkingRandom()
public boolean isBestSolutionInitialized()
public Score getBestScore()
public long getPhaseBestSolutionTimeMillis()
public int getNextStepIndex()
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.