org.drools.planner.benchmark.core.statistic
Class AbstractProblemStatistic
java.lang.Object
org.drools.planner.benchmark.core.statistic.AbstractProblemStatistic
- All Implemented Interfaces:
- ProblemStatistic
- Direct Known Subclasses:
- BestScoreProblemStatistic, CalculateCountProblemStatistic, MemoryUseProblemStatistic
public abstract class AbstractProblemStatistic
- extends Object
- implements ProblemStatistic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
problemBenchmark
protected final ProblemBenchmark problemBenchmark
problemStatisticType
protected final ProblemStatisticType problemStatisticType
csvStatisticFile
protected File csvStatisticFile
warningList
protected List<String> warningList
AbstractProblemStatistic
protected AbstractProblemStatistic(ProblemBenchmark problemBenchmark,
ProblemStatisticType problemStatisticType)
getProblemBenchmark
public ProblemBenchmark getProblemBenchmark()
getProblemStatisticType
public ProblemStatisticType getProblemStatisticType()
- Specified by:
getProblemStatisticType
in interface ProblemStatistic
- Returns:
- never null
getAnchorId
public String getAnchorId()
- Specified by:
getAnchorId
in interface ProblemStatistic
- Returns:
- never null
getCsvFilePath
public String getCsvFilePath()
- Specified by:
getCsvFilePath
in interface ProblemStatistic
- Returns:
- never null, relative to the
DefaultPlannerBenchmark.benchmarkReportDirectory
(not ProblemBenchmark.problemReportDirectory
)
getWarningList
public List<String> getWarningList()
- Specified by:
getWarningList
in interface ProblemStatistic
- Returns:
- never null
toFilePath
protected String toFilePath(File file)
writeStatistic
public void writeStatistic()
- Specified by:
writeStatistic
in interface ProblemStatistic
fillWarningList
protected void fillWarningList()
writeCsvStatistic
protected abstract void writeCsvStatistic()
writeGraphStatistic
protected abstract void writeGraphStatistic()
writeChartToImageFile
protected File writeChartToImageFile(org.jfree.chart.JFreeChart chart,
String fileNameBase)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.