public class PartitionedSearchPhaseConfig extends PhaseConfig<PartitionedSearchPhaseConfig>
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_THREAD_COUNT_AUTO |
static String |
ACTIVE_THREAD_COUNT_UNLIMITED |
protected String |
activeThreadCount |
protected List<PhaseConfig> |
phaseConfigList |
protected Class<? extends ThreadFactory> |
threadFactoryClass |
Constructor and Description |
---|
PartitionedSearchPhaseConfig() |
Modifier and Type | Method and Description |
---|---|
PartitionedSearchPhase |
buildPhase(int phaseIndex,
HeuristicConfigPolicy solverConfigPolicy,
BestSolutionRecaller bestSolutionRecaller,
Termination solverTermination) |
String |
getActiveThreadCount()
If there aren't enough processors available, CPU's will be shared by threads in a round-robin matter,.
|
List<PhaseConfig> |
getPhaseConfigList() |
Class<SolutionPartitioner> |
getSolutionPartitionerClass() |
Class<? extends ThreadFactory> |
getThreadFactoryClass() |
void |
inherit(PartitionedSearchPhaseConfig inheritedConfig)
Inherits each property of the
inheritedConfig unless that property (or a semantic alternative)
is defined by this instance (which overwrites the inherited behaviour). |
void |
setActiveThreadCount(String activeThreadCount) |
void |
setPhaseConfigList(List<PhaseConfig> phaseConfigList) |
void |
setSolutionPartitionerClass(Class<SolutionPartitioner> solutionPartitionerClass) |
void |
setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass) |
configurePhase, getTerminationConfig, setTerminationConfig, toString
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList, newInstance
public static final String ACTIVE_THREAD_COUNT_AUTO
public static final String ACTIVE_THREAD_COUNT_UNLIMITED
protected Class<? extends ThreadFactory> threadFactoryClass
protected String activeThreadCount
protected List<PhaseConfig> phaseConfigList
public Class<? extends ThreadFactory> getThreadFactoryClass()
public void setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
public String getActiveThreadCount()
Solver
.public void setActiveThreadCount(String activeThreadCount)
public Class<SolutionPartitioner> getSolutionPartitionerClass()
public void setSolutionPartitionerClass(Class<SolutionPartitioner> solutionPartitionerClass)
public List<PhaseConfig> getPhaseConfigList()
public void setPhaseConfigList(List<PhaseConfig> phaseConfigList)
public PartitionedSearchPhase buildPhase(int phaseIndex, HeuristicConfigPolicy solverConfigPolicy, BestSolutionRecaller bestSolutionRecaller, Termination solverTermination)
buildPhase
in class PhaseConfig<PartitionedSearchPhaseConfig>
public void inherit(PartitionedSearchPhaseConfig 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 PhaseConfig<PartitionedSearchPhaseConfig>
inheritedConfig
- never nullCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.