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 |
static String |
MOVE_THREAD_COUNT_AUTO |
static String |
MOVE_THREAD_COUNT_NONE |
protected Integer |
moveThreadBufferSize |
protected String |
moveThreadCount |
protected List<PhaseConfig> |
phaseConfigList |
protected Class<? extends RandomFactory> |
randomFactoryClass |
protected Long |
randomSeed |
protected RandomType |
randomType |
protected ScanAnnotatedClassesConfig |
scanAnnotatedClassesConfig |
protected ScoreDirectorFactoryConfig |
scoreDirectorFactoryConfig |
protected Class<?> |
solutionClass |
protected Class<? extends ThreadFactory> |
threadFactoryClass |
Constructor and Description |
---|
SolverConfig() |
SolverConfig(SolverConfig inheritedConfig) |
copyConfig, deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList, newInstance, toString
public static final String MOVE_THREAD_COUNT_NONE
public static final String MOVE_THREAD_COUNT_AUTO
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 String moveThreadCount
protected Integer moveThreadBufferSize
protected Class<? extends ThreadFactory> threadFactoryClass
protected ScanAnnotatedClassesConfig scanAnnotatedClassesConfig
protected Class<?> solutionClass
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 String getMoveThreadCount()
public void setMoveThreadCount(String moveThreadCount)
public Integer getMoveThreadBufferSize()
public void setMoveThreadBufferSize(Integer moveThreadBufferSize)
public Class<? extends ThreadFactory> getThreadFactoryClass()
public void setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
public ScanAnnotatedClassesConfig getScanAnnotatedClassesConfig()
public void setScanAnnotatedClassesConfig(ScanAnnotatedClassesConfig scanAnnotatedClassesConfig)
public Class<?> getSolutionClass()
public void setSolutionClass(Class<?> solutionClass)
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 SolverConfig withEnvironmentMode(EnvironmentMode environmentMode)
public SolverConfig withDaemon(Boolean daemon)
public SolverConfig withRandomType(RandomType randomType)
public SolverConfig withRandomSeed(Long randomSeed)
public SolverConfig withRandomFactoryClass(Class<? extends RandomFactory> randomFactoryClass)
public SolverConfig withMoveThreadCount(String moveThreadCount)
public SolverConfig withMoveThreadBufferSize(Integer moveThreadBufferSize)
public SolverConfig withThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
public SolverConfig withSolutionClass(Class<?> solutionClass)
public SolverConfig withEntityClassList(List<Class<?>> entityClassList)
public SolverConfig withEntityClasses(Class<?>... entityClasses)
public SolverConfig withScoreDirectorFactory(ScoreDirectorFactoryConfig scoreDirectorFactoryConfig)
public SolverConfig withTerminationConfig(TerminationConfig terminationConfig)
public SolverConfig withPhaseList(List<PhaseConfig> phaseConfigList)
public SolverConfig withPhases(PhaseConfig... phaseConfigs)
public EnvironmentMode determineEnvironmentMode()
public void offerRandomSeedFromSubSingleIndex(long subSingleIndex)
public <Solution_> Solver<Solution_> buildSolver(SolverConfigContext configContext)
configContext
- never nullprotected RandomFactory buildRandomFactory(EnvironmentMode environmentMode_)
protected int getAvailableProcessors()
protected Integer resolveMoveThreadCount()
public <Solution_> SolutionDescriptor<Solution_> buildSolutionDescriptor(SolverConfigContext configContext)
protected <Solution_> List<Phase<Solution_>> 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–2019 JBoss by Red Hat. All rights reserved.