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 Long startingSystemTimeMillis
protected int startingSolverCount
protected Long endingSystemTimeMillis
protected InnerScoreDirector scoreDirector
protected Random workingRandom
protected Score startingInitializedScore
protected Solution bestSolution
protected int bestUninitializedVariableCount
protected Score bestScore
protected Long bestSolutionTimeMillis
public Long getStartingSystemTimeMillis()
public void setStartingSystemTimeMillis(Long startingSystemTimeMillis)
public int getStartingSolverCount()
public void setStartingSolverCount(int startingSolverCount)
public Long getEndingSystemTimeMillis()
public void setEndingSystemTimeMillis(Long endingSystemTimeMillis)
public InnerScoreDirector getScoreDirector()
public void setScoreDirector(InnerScoreDirector scoreDirector)
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 Random getWorkingRandom()
public void setWorkingRandom(Random workingRandom)
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-2015 JBoss by Red Hat. All Rights Reserved.