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 protected List<Phase<Solution_>>
buildPhaseList(HeuristicConfigPolicy<Solution_> configPolicy, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination<Solution_> termination)
protected RandomFactory
buildRandomFactory(EnvironmentMode environmentMode_)
InnerScoreDirectorFactory<Solution_,?>
buildScoreDirectorFactory(EnvironmentMode environmentMode)
SolutionDescriptor<Solution_>
buildSolutionDescriptor()
Solver<Solution_>
buildSolver()
Creates a newSolver
instance.InnerScoreDirectorFactory<Solution_,?>
getScoreDirectorFactory()
-
-
-
Constructor Detail
-
DefaultSolverFactory
public DefaultSolverFactory(SolverConfig solverConfig)
-
-
Method Detail
-
getScoreDirectorFactory
public InnerScoreDirectorFactory<Solution_,?> getScoreDirectorFactory()
-
buildSolver
public Solver<Solution_> buildSolver()
Description copied from interface:SolverFactory
Creates a newSolver
instance.- Specified by:
buildSolver
in interfaceSolverFactory<Solution_>
- Returns:
- never null
-
buildScoreDirectorFactory
public InnerScoreDirectorFactory<Solution_,?> buildScoreDirectorFactory(EnvironmentMode environmentMode)
- Parameters:
environmentMode
- never null- Returns:
- never null
-
buildSolutionDescriptor
public SolutionDescriptor<Solution_> buildSolutionDescriptor()
- Returns:
- never null
-
buildRandomFactory
protected RandomFactory buildRandomFactory(EnvironmentMode environmentMode_)
-
buildPhaseList
protected List<Phase<Solution_>> buildPhaseList(HeuristicConfigPolicy<Solution_> configPolicy, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination<Solution_> termination)
-
-