Package org.optaplanner.core.impl.solver
Class DefaultSolverFactory<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.solver.DefaultSolverFactory<Solution_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- All Implemented Interfaces:
SolverFactory<Solution_>
public final class DefaultSolverFactory<Solution_> extends Object implements SolverFactory<Solution_>
- See Also:
SolverFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DefaultSolverFactory.MoveThreadCountResolver
-
Constructor Summary
Constructors Constructor Description DefaultSolverFactory(SolverConfig solverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Solver<Solution_>
buildSolver()
Creates a newSolver
instance.<Score_ extends Score<Score_>>
InnerScoreDirectorFactory<Solution_,Score_>getScoreDirectorFactory()
SolutionDescriptor<Solution_>
getSolutionDescriptor()
-
-
-
Constructor Detail
-
DefaultSolverFactory
public DefaultSolverFactory(SolverConfig solverConfig)
-
-
Method Detail
-
getSolutionDescriptor
public SolutionDescriptor<Solution_> getSolutionDescriptor()
-
getScoreDirectorFactory
public <Score_ extends Score<Score_>> InnerScoreDirectorFactory<Solution_,Score_> getScoreDirectorFactory()
-
buildSolver
public Solver<Solution_> buildSolver()
Description copied from interface:SolverFactory
Creates a newSolver
instance.- Specified by:
buildSolver
in interfaceSolverFactory<Solution_>
- Returns:
- never null
-
-