}
}
private ProblemBenchmark buildProblemBenchmark(DefaultPlannerBenchmark plannerBenchmark,
ProblemIO problemIO, File inputSolutionFile) {
ProblemBenchmark problemBenchmark = new ProblemBenchmark(plannerBenchmark);
String name = FilenameUtils.getBaseName(inputSolutionFile.getName());
problemBenchmark.setName(name);
problemBenchmark.setProblemIO(problemIO);
problemBenchmark.setWriteOutputSolutionEnabled(
writeOutputSolutionEnabled == null ? false : writeOutputSolutionEnabled);
problemBenchmark.setInputSolutionFile(inputSolutionFile);
// outputSolutionFilesDirectory is set by DefaultPlannerBenchmark
List<ProblemStatistic> problemStatisticList = new ArrayList<ProblemStatistic>(
problemStatisticTypeList == null ? 0 : problemStatisticTypeList.size());
if (problemStatisticTypeList != null) {
for (ProblemStatisticType problemStatisticType : problemStatisticTypeList) {
problemStatisticList.add(problemStatisticType.create(problemBenchmark));
}
}
problemBenchmark.setProblemStatisticList(problemStatisticList);
problemBenchmark.setSingleBenchmarkList(new ArrayList<SingleBenchmark>());
return problemBenchmark;
}