Class InstanceProblemProvider<Solution_>
java.lang.Object
org.optaplanner.benchmark.impl.loader.InstanceProblemProvider<Solution_>
- All Implemented Interfaces:
ProblemProvider<Solution_>
public class InstanceProblemProvider<Solution_>
extends Object
implements ProblemProvider<Solution_>
-
Constructor Summary
ConstructorDescriptionInstanceProblemProvider
(String problemName, SolutionDescriptor<Solution_> solutionDescriptor, Solution_ problem) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
toString()
void
writeSolution
(Solution_ solution, SubSingleBenchmarkResult subSingleBenchmarkResult)
-
Constructor Details
-
InstanceProblemProvider
public InstanceProblemProvider() -
InstanceProblemProvider
public InstanceProblemProvider(String problemName, SolutionDescriptor<Solution_> solutionDescriptor, Solution_ problem)
-
-
Method Details
-
getProblemName
- Specified by:
getProblemName
in interfaceProblemProvider<Solution_>
- Returns:
- never null
-
readProblem
- Specified by:
readProblem
in interfaceProblemProvider<Solution_>
- Returns:
- never null
-
writeSolution
- Specified by:
writeSolution
in interfaceProblemProvider<Solution_>
- Parameters:
solution
- never nullsubSingleBenchmarkResult
- never null
-
equals
-
hashCode
public int hashCode() -
toString
-