org.optaplanner.benchmark.impl.loader

## Interface ProblemProvider<Solution_>

- Type Parameters:
    `Solution_` - the solution type, the class with the `PlanningSolution` annotation
  All Known Implementing Classes:
    FileProblemProvider, InstanceProblemProvider

      public interface ProblemProvider<Solution_>

  Subclasses need to implement `equals()` and `hashCode()` which are used by `ProblemBenchmarksConfig.buildProblemBenchmarkList(org.optaplanner.core.config.SolverConfigContext, org.optaplanner.benchmark.impl.result.SolverBenchmarkResult, Solution_[])`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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 null
        `subSingleBenchmarkResult` - never null

Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.