Class SubSingleStatistic<Solution_,StatisticPoint_ extends StatisticPoint>
- java.lang.Object
-
- org.optaplanner.benchmark.impl.statistic.SubSingleStatistic<Solution_,StatisticPoint_>
-
- Direct Known Subclasses:
ProblemBasedSubSingleStatistic,PureSubSingleStatistic
public abstract class SubSingleStatistic<Solution_,StatisticPoint_ extends StatisticPoint> extends Object
1 statistic ofSubSingleBenchmarkResult.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerloggerprotected List<StatisticPoint_>pointListprotected SubSingleBenchmarkResultsubSingleBenchmarkResult
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubSingleStatistic(SubSingleBenchmarkResult subSingleBenchmarkResult)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclose(Solver<Solution_> solver)protected abstract StatisticPoint_createPointFromCsvLine(ScoreDefinition scoreDefinition, List<String> csvLine)StringgetAnchorId()FilegetCsvFile()StringgetCsvFileName()protected abstract StringgetCsvHeader()List<StatisticPoint_>getPointList()StringgetRelativeCsvFilePath()abstract StatisticTypegetStatisticType()SubSingleBenchmarkResultgetSubSingleBenchmarkResult()voidhibernatePointList()voidinitPointList()abstract voidopen(Solver<Solution_> solver)voidsetPointList(List<StatisticPoint_> pointList)voidsetSubSingleBenchmarkResult(SubSingleBenchmarkResult subSingleBenchmarkResult)voidunhibernatePointList()
-
-
-
Field Detail
-
logger
protected final transient org.slf4j.Logger logger
-
subSingleBenchmarkResult
protected SubSingleBenchmarkResult subSingleBenchmarkResult
-
pointList
protected List<StatisticPoint_ extends StatisticPoint> pointList
-
-
Constructor Detail
-
SubSingleStatistic
protected SubSingleStatistic(SubSingleBenchmarkResult subSingleBenchmarkResult)
-
-
Method Detail
-
getSubSingleBenchmarkResult
public SubSingleBenchmarkResult getSubSingleBenchmarkResult()
-
setSubSingleBenchmarkResult
public void setSubSingleBenchmarkResult(SubSingleBenchmarkResult subSingleBenchmarkResult)
-
getStatisticType
public abstract StatisticType getStatisticType()
-
getPointList
public List<StatisticPoint_> getPointList()
-
setPointList
public void setPointList(List<StatisticPoint_> pointList)
-
getRelativeCsvFilePath
public String getRelativeCsvFilePath()
- Returns:
- never null, the relative path from
PlannerBenchmarkResult.getBenchmarkReportDirectory().
-
getCsvFileName
public String getCsvFileName()
-
getCsvFile
public File getCsvFile()
-
initPointList
public void initPointList()
-
getCsvHeader
protected abstract String getCsvHeader()
-
unhibernatePointList
public void unhibernatePointList()
-
hibernatePointList
public void hibernatePointList()
-
createPointFromCsvLine
protected abstract StatisticPoint_ createPointFromCsvLine(ScoreDefinition scoreDefinition, List<String> csvLine)
-
getAnchorId
public String getAnchorId()
-
-