Class SubSingleBenchmarkResult
java.lang.Object
org.optaplanner.benchmark.impl.result.SubSingleBenchmarkResult
- All Implemented Interfaces:
BenchmarkResult
Represents 1 benchmark run for 1 Single Benchmark configuration for 1
Solver
configuration for 1 problem
instance (data set).-
Constructor Summary
ConstructorDescriptionSubSingleBenchmarkResult
(SingleBenchmarkResult singleBenchmarkResult, int subSingleBenchmarkIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulateResults
(BenchmarkReport benchmarkReport) protected static SubSingleBenchmarkResult
createMerge
(SingleBenchmarkResult singleBenchmarkResult, SubSingleBenchmarkResult oldResult, int subSingleBenchmarkIndex) Score<?>
getName()
Score<?>
getScore()
long
int
getSubSingleStatistic
(StatisticType statisticType) long
boolean
boolean
void
boolean
boolean
boolean
isWinner()
void
makeDirs()
void
setPureSubSingleStatisticList
(List<PureSubSingleStatistic> pureSubSingleStatisticList) void
setRanking
(Integer ranking) void
void
setScoreCalculationCount
(long scoreCalculationCount) void
setScoreExplanationSummary
(String scoreExplanationSummary) void
setSingleBenchmarkResult
(SingleBenchmarkResult singleBenchmarkResult) void
setSucceeded
(Boolean succeeded) void
setTimeMillisSpent
(long timeMillisSpent) void
setUsedMemoryAfterInputSolution
(Long usedMemoryAfterInputSolution) toString()
-
Constructor Details
-
SubSingleBenchmarkResult
public SubSingleBenchmarkResult(SingleBenchmarkResult singleBenchmarkResult, int subSingleBenchmarkIndex)
-
-
Method Details
-
getPureSubSingleStatisticList
-
setPureSubSingleStatisticList
-
initSubSingleStatisticMap
public void initSubSingleStatisticMap() -
getSingleBenchmarkResult
-
setSingleBenchmarkResult
-
getSubSingleBenchmarkIndex
public int getSubSingleBenchmarkIndex() -
getEffectiveSubSingleStatisticMap
-
getUsedMemoryAfterInputSolution
- Returns:
- null if
PlannerBenchmarkResult.hasMultipleParallelBenchmarks()
return true
-
setUsedMemoryAfterInputSolution
-
getSucceeded
-
setSucceeded
-
getScore
-
setScore
-
getTimeMillisSpent
public long getTimeMillisSpent() -
setTimeMillisSpent
public void setTimeMillisSpent(long timeMillisSpent) -
getScoreCalculationCount
public long getScoreCalculationCount() -
setScoreCalculationCount
public void setScoreCalculationCount(long scoreCalculationCount) -
getScoreExplanationSummary
-
setScoreExplanationSummary
-
getRanking
-
setRanking
-
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
-
isWinner
public boolean isWinner() -
getSubSingleStatistic
-
getAverageScore
- Specified by:
getAverageScore
in interfaceBenchmarkResult
-
getResultDirectoryName
- Specified by:
getResultDirectoryName
in interfaceBenchmarkResult
- Returns:
- the name of the directory that holds the benchmark's results
-
getResultDirectory
- Specified by:
getResultDirectory
in interfaceBenchmarkResult
- Returns:
- the benchmark result directory as a file
-
makeDirs
public void makeDirs() -
accumulateResults
-
createMerge
protected static SubSingleBenchmarkResult createMerge(SingleBenchmarkResult singleBenchmarkResult, SubSingleBenchmarkResult oldResult, int subSingleBenchmarkIndex) -
toString
-