public class SolverConfig extends AbstractConfig<SolverConfig>
Modifier and Type | Field and Description |
---|---|
protected Boolean |
daemon |
protected static long |
DEFAULT_RANDOM_SEED |
protected List<Class<?>> |
entityClassList |
protected EnvironmentMode |
environmentMode |
protected List<PhaseConfig> |
phaseConfigList |
protected Class<? extends RandomFactory> |
randomFactoryClass |
protected Long |
randomSeed |
protected RandomType |
randomType |
protected ScanAnnotatedClassesConfig |
scanAnnotatedClassesConfig |
protected ScoreDirectorFactoryConfig |
scoreDirectorFactoryConfig |
protected Class<? extends Solution> |
solutionClass |
Constructor and Description |
---|
SolverConfig() |
SolverConfig(SolverConfig inheritedConfig) |
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList, newInstance, toString
protected static final long DEFAULT_RANDOM_SEED
protected EnvironmentMode environmentMode
protected Boolean daemon
protected RandomType randomType
protected Long randomSeed
protected Class<? extends RandomFactory> randomFactoryClass
protected ScanAnnotatedClassesConfig scanAnnotatedClassesConfig
protected ScoreDirectorFactoryConfig scoreDirectorFactoryConfig
protected List<PhaseConfig> phaseConfigList
public SolverConfig()
public SolverConfig(SolverConfig inheritedConfig)
public EnvironmentMode getEnvironmentMode()
public void setEnvironmentMode(EnvironmentMode environmentMode)
public Boolean getDaemon()
public void setDaemon(Boolean daemon)
public RandomType getRandomType()
public void setRandomType(RandomType randomType)
public Long getRandomSeed()
public void setRandomSeed(Long randomSeed)
public Class<? extends RandomFactory> getRandomFactoryClass()
public void setRandomFactoryClass(Class<? extends RandomFactory> randomFactoryClass)
public ScanAnnotatedClassesConfig getScanAnnotatedClassesConfig()
public void setScanAnnotatedClassesConfig(ScanAnnotatedClassesConfig scanAnnotatedClassesConfig)
public ScoreDirectorFactoryConfig getScoreDirectorFactoryConfig()
public void setScoreDirectorFactoryConfig(ScoreDirectorFactoryConfig scoreDirectorFactoryConfig)
public TerminationConfig getTerminationConfig()
public void setTerminationConfig(TerminationConfig terminationConfig)
public List<PhaseConfig> getPhaseConfigList()
public void setPhaseConfigList(List<PhaseConfig> phaseConfigList)
public EnvironmentMode determineEnvironmentMode()
public void offerRandomSeedFromSubSingleIndex(long subSingleIndex)
@Deprecated public <Solution_ extends Solution> Solver<Solution_> buildSolver()
@Deprecated public <Solution_ extends Solution> Solver<Solution_> buildSolver(ClassLoader classLoader)
classLoader
- sometimes nullpublic <Solution_ extends Solution> Solver<Solution_> buildSolver(SolverConfigContext configContext)
configContext
- never nullprotected RandomFactory buildRandomFactory(EnvironmentMode environmentMode_)
protected SolutionDescriptor buildSolutionDescriptor(SolverConfigContext configContext)
protected BestSolutionRecaller buildBestSolutionRecaller(EnvironmentMode environmentMode)
protected List<Phase> buildPhaseList(HeuristicConfigPolicy configPolicy, BestSolutionRecaller bestSolutionRecaller, Termination termination)
public void inherit(SolverConfig inheritedConfig)
AbstractConfig
inheritedConfig
unless that property (or a semantic alternative)
is defined by this instance (which overwrites the inherited behaviour).
After the inheritance, if a property on this AbstractConfig
composition is replaced,
it should not affect the inherited composition instance.
inherit
in class AbstractConfig<SolverConfig>
inheritedConfig
- never nullCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.