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 the- PlanningSolutionannotation
 - All Implemented Interfaces:
- SolverFactory<Solution_>
 
 public final class DefaultSolverFactory<Solution_> extends Object implements SolverFactory<Solution_> - See Also:
- SolverFactory
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classDefaultSolverFactory.MoveThreadCountResolver
 - 
Constructor SummaryConstructors Constructor Description DefaultSolverFactory(SolverConfig solverConfig)
 - 
Method SummaryAll 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 RandomFactorybuildRandomFactory(EnvironmentMode environmentMode_)InnerScoreDirectorFactory<Solution_,?>buildScoreDirectorFactory(EnvironmentMode environmentMode)SolutionDescriptor<Solution_>buildSolutionDescriptor()Solver<Solution_>buildSolver()Creates a newSolverinstance.InnerScoreDirectorFactory<Solution_,?>getScoreDirectorFactory()
 
- 
- 
- 
Constructor Detail- 
DefaultSolverFactorypublic DefaultSolverFactory(SolverConfig solverConfig) 
 
- 
 - 
Method Detail- 
getScoreDirectorFactorypublic InnerScoreDirectorFactory<Solution_,?> getScoreDirectorFactory() 
 - 
buildSolverpublic Solver<Solution_> buildSolver() Description copied from interface:SolverFactoryCreates a newSolverinstance.- Specified by:
- buildSolverin interface- SolverFactory<Solution_>
- Returns:
- never null
 
 - 
buildScoreDirectorFactorypublic InnerScoreDirectorFactory<Solution_,?> buildScoreDirectorFactory(EnvironmentMode environmentMode) - Parameters:
- environmentMode- never null
- Returns:
- never null
 
 - 
buildSolutionDescriptorpublic SolutionDescriptor<Solution_> buildSolutionDescriptor() - Returns:
- never null
 
 - 
buildRandomFactoryprotected RandomFactory buildRandomFactory(EnvironmentMode environmentMode_) 
 - 
buildPhaseListprotected List<Phase<Solution_>> buildPhaseList(HeuristicConfigPolicy<Solution_> configPolicy, BestSolutionRecaller<Solution_> bestSolutionRecaller, Termination<Solution_> termination) 
 
- 
 
-