public class DefaultSolverScope extends Object
Modifier and Type | Field and Description |
---|---|
protected Score |
bestScore |
protected Solution |
bestSolution |
protected Long |
bestSolutionTimeMillis |
protected int |
bestUninitializedVariableCount |
protected Long |
endingSystemTimeMillis |
protected org.slf4j.Logger |
logger |
protected InnerScoreDirector |
scoreDirector |
protected Score |
startingInitializedScore |
protected int |
startingSolverCount |
protected Long |
startingSystemTimeMillis |
protected Random |
workingRandom |
Constructor and Description |
---|
DefaultSolverScope() |
protected final transient org.slf4j.Logger logger
protected int startingSolverCount
protected Random workingRandom
protected InnerScoreDirector scoreDirector
protected Long startingSystemTimeMillis
protected Long endingSystemTimeMillis
protected Score startingInitializedScore
protected volatile Solution bestSolution
protected volatile int bestUninitializedVariableCount
protected volatile Score bestScore
protected Long bestSolutionTimeMillis
public int getStartingSolverCount()
public void setStartingSolverCount(int startingSolverCount)
public Random getWorkingRandom()
public void setWorkingRandom(Random workingRandom)
public InnerScoreDirector getScoreDirector()
public void setScoreDirector(InnerScoreDirector scoreDirector)
public Long getStartingSystemTimeMillis()
public void setStartingSystemTimeMillis(Long startingSystemTimeMillis)
public Long getEndingSystemTimeMillis()
public void setEndingSystemTimeMillis(Long endingSystemTimeMillis)
public SolutionDescriptor getSolutionDescriptor()
public ScoreDefinition getScoreDefinition()
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 assertScoreFromScratch(Solution solution)
public Score getStartingInitializedScore()
public void setStartingInitializedScore(Score startingInitializedScore)
public long getCalculateCount()
public Solution getBestSolution()
public void setBestSolution(Solution bestSolution)
bestSolution
- never nullpublic int getBestUninitializedVariableCount()
public void setBestUninitializedVariableCount(int bestUninitializedVariableCount)
public Score getBestScore()
public void setBestScore(Score bestScore)
public Long getBestSolutionTimeMillis()
public void setBestSolutionTimeMillis(Long bestSolutionTimeMillis)
public boolean isBestSolutionInitialized()
public long calculateTimeMillisSpent()
public void setWorkingSolutionFromBestSolution()
public String getBestScoreWithUninitializedPrefix()
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.