Class ProblemStatistic
- java.lang.Object
-
- org.optaplanner.benchmark.impl.statistic.ProblemStatistic
-
- Direct Known Subclasses:
BestScoreProblemStatistic
,BestSolutionMutationProblemStatistic
,MemoryUseProblemStatistic
,MoveCountPerStepProblemStatistic
,ScoreCalculationSpeedProblemStatistic
,StepScoreProblemStatistic
public abstract class ProblemStatistic extends Object
1 statistic ofProblemBenchmarkResult
.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
protected ProblemBenchmarkResult<Object>
problemBenchmarkResult
protected ProblemStatisticType
problemStatisticType
protected List<String>
warningList
-
Constructor Summary
Constructors Modifier Constructor Description ProblemStatistic()
protected
ProblemStatistic(ProblemBenchmarkResult problemBenchmarkResult, ProblemStatisticType problemStatisticType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
accumulateResults(BenchmarkReport benchmarkReport)
abstract SubSingleStatistic
createSubSingleStatistic(SubSingleBenchmarkResult subSingleBenchmarkResult)
protected void
fillWarningList()
String
getAnchorId()
File
getGraphFile()
abstract List<File>
getGraphFileList()
ProblemBenchmarkResult
getProblemBenchmarkResult()
ProblemStatisticType
getProblemStatisticType()
List<SubSingleStatistic>
getSubSingleStatisticList()
List<String>
getWarningList()
void
setProblemBenchmarkResult(ProblemBenchmarkResult problemBenchmarkResult)
String
toString()
protected File
writeChartToImageFile(org.jfree.chart.JFreeChart chart, String fileNameBase)
abstract void
writeGraphFiles(BenchmarkReport benchmarkReport)
-
-
-
Field Detail
-
logger
protected final transient org.slf4j.Logger logger
-
problemBenchmarkResult
protected ProblemBenchmarkResult<Object> problemBenchmarkResult
-
problemStatisticType
protected final ProblemStatisticType problemStatisticType
-
-
Constructor Detail
-
ProblemStatistic
public ProblemStatistic()
-
ProblemStatistic
protected ProblemStatistic(ProblemBenchmarkResult problemBenchmarkResult, ProblemStatisticType problemStatisticType)
-
-
Method Detail
-
getProblemBenchmarkResult
public ProblemBenchmarkResult getProblemBenchmarkResult()
-
setProblemBenchmarkResult
public void setProblemBenchmarkResult(ProblemBenchmarkResult problemBenchmarkResult)
-
getProblemStatisticType
public ProblemStatisticType getProblemStatisticType()
-
getAnchorId
public String getAnchorId()
-
getSubSingleStatisticList
public List<SubSingleStatistic> getSubSingleStatisticList()
-
createSubSingleStatistic
public abstract SubSingleStatistic createSubSingleStatistic(SubSingleBenchmarkResult subSingleBenchmarkResult)
-
accumulateResults
public void accumulateResults(BenchmarkReport benchmarkReport)
-
writeGraphFiles
public abstract void writeGraphFiles(BenchmarkReport benchmarkReport)
-
fillWarningList
protected void fillWarningList()
-
writeChartToImageFile
protected File writeChartToImageFile(org.jfree.chart.JFreeChart chart, String fileNameBase)
-
getGraphFile
public File getGraphFile()
-
-