Interface ProblemProvider<Solution_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- All Known Implementing Classes:
FileProblemProvider
,InstanceProblemProvider
public interface ProblemProvider<Solution_>
Subclasses need to implementequals()
andhashCode()
which are used byProblemBenchmarksFactory.buildProblemBenchmarkList(org.optaplanner.benchmark.impl.result.SolverBenchmarkResult, Solution_[])
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getProblemName()
Solution_
readProblem()
void
writeSolution(Solution_ solution, SubSingleBenchmarkResult subSingleBenchmarkResult)
-
-
-
Method Detail
-
getProblemName
String getProblemName()
- Returns:
- never null
-
readProblem
Solution_ readProblem()
- Returns:
- never null
-
writeSolution
void writeSolution(Solution_ solution, SubSingleBenchmarkResult subSingleBenchmarkResult)
- Parameters:
solution
- never nullsubSingleBenchmarkResult
- never null
-
-