Class SubSingleBenchmarkResult
- java.lang.Object
-
- org.optaplanner.benchmark.impl.result.SubSingleBenchmarkResult
-
- All Implemented Interfaces:
BenchmarkResult
public class SubSingleBenchmarkResult extends Object implements BenchmarkResult
Represents 1 benchmark run for 1 Single Benchmark configuration for 1Solver
configuration for 1 problem instance (data set).
-
-
Constructor Summary
Constructors Constructor Description SubSingleBenchmarkResult(SingleBenchmarkResult singleBenchmarkResult, int subSingleBenchmarkIndex)
-
Method Summary
-
-
-
Constructor Detail
-
SubSingleBenchmarkResult
public SubSingleBenchmarkResult(SingleBenchmarkResult singleBenchmarkResult, int subSingleBenchmarkIndex)
-
-
Method Detail
-
getPureSubSingleStatisticList
public List<PureSubSingleStatistic> getPureSubSingleStatisticList()
-
setPureSubSingleStatisticList
public void setPureSubSingleStatisticList(List<PureSubSingleStatistic> pureSubSingleStatisticList)
-
initSubSingleStatisticMap
public void initSubSingleStatisticMap()
-
getSingleBenchmarkResult
public SingleBenchmarkResult getSingleBenchmarkResult()
-
setSingleBenchmarkResult
public void setSingleBenchmarkResult(SingleBenchmarkResult singleBenchmarkResult)
-
getSubSingleBenchmarkIndex
public int getSubSingleBenchmarkIndex()
-
getEffectiveSubSingleStatisticMap
public Map<StatisticType,SubSingleStatistic> getEffectiveSubSingleStatisticMap()
-
getUsedMemoryAfterInputSolution
public Long getUsedMemoryAfterInputSolution()
- Returns:
- null if
PlannerBenchmarkResult.hasMultipleParallelBenchmarks()
return true
-
setUsedMemoryAfterInputSolution
public void setUsedMemoryAfterInputSolution(Long usedMemoryAfterInputSolution)
-
getSucceeded
public Boolean getSucceeded()
-
setSucceeded
public void setSucceeded(Boolean succeeded)
-
getScore
public Score getScore()
-
setScore
public void setScore(Score score)
-
getTimeMillisSpent
public long getTimeMillisSpent()
-
setTimeMillisSpent
public void setTimeMillisSpent(long timeMillisSpent)
-
getScoreCalculationCount
public long getScoreCalculationCount()
-
setScoreCalculationCount
public void setScoreCalculationCount(long scoreCalculationCount)
-
getRanking
public Integer getRanking()
-
setRanking
public void setRanking(Integer ranking)
-
getName
public String getName()
- Specified by:
getName
in interfaceBenchmarkResult
- Returns:
- never null, filename safe
-
hasAllSuccess
public boolean hasAllSuccess()
- Specified by:
hasAllSuccess
in interfaceBenchmarkResult
- Returns:
- true if all child benchmarks were a success and the variable is initialized
-
isInitialized
public boolean isInitialized()
-
hasAnyFailure
public boolean hasAnyFailure()
- Specified by:
hasAnyFailure
in interfaceBenchmarkResult
- Returns:
- true if there is a failed child benchmark and the variable is initialized
-
isScoreFeasible
public boolean isScoreFeasible()
-
getScoreCalculationSpeed
public Long getScoreCalculationSpeed()
-
isWinner
public boolean isWinner()
-
getSubSingleStatistic
public SubSingleStatistic getSubSingleStatistic(StatisticType statisticType)
-
getAverageScore
public Score getAverageScore()
- Specified by:
getAverageScore
in interfaceBenchmarkResult
-
getResultDirectoryName
public String getResultDirectoryName()
- Specified by:
getResultDirectoryName
in interfaceBenchmarkResult
- Returns:
- the name of the directory that holds the benchmark's results
-
getResultDirectory
public File getResultDirectory()
- Specified by:
getResultDirectory
in interfaceBenchmarkResult
- Returns:
- the benchmark result directory as a file
-
makeDirs
public void makeDirs()
-
accumulateResults
public void accumulateResults(BenchmarkReport benchmarkReport)
-
createMerge
protected static SubSingleBenchmarkResult createMerge(SingleBenchmarkResult singleBenchmarkResult, SubSingleBenchmarkResult oldResult, int subSingleBenchmarkIndex)
-
-