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 thePlanningSolutionannotation
- 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 classDefaultSolverFactory.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 newSolverinstance.<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:SolverFactoryCreates a newSolverinstance.- Specified by:
buildSolverin interfaceSolverFactory<Solution_>- Returns:
- never null
-
-