org.optaplanner.core.config.heuristic.selector.value.chained
public class SubChainSelectorConfig extends SelectorConfig
Modifier and Type | Field and Description |
---|---|
protected Integer |
maximumSubChainSize |
protected Integer |
minimumSubChainSize |
protected ValueSelectorConfig |
valueSelectorConfig |
Constructor and Description |
---|
SubChainSelectorConfig() |
Modifier and Type | Method and Description |
---|---|
SubChainSelector |
buildSubChainSelector(HeuristicConfigPolicy configPolicy,
PlanningEntityDescriptor entityDescriptor,
SelectionCacheType minimumCacheType,
SelectionOrder inheritedSelectionOrder) |
Integer |
getMaximumSubChainSize() |
Integer |
getMinimumSubChainSize()
Defaults to because other
MoveSelector s
s(uch as ChangeMoveSelector and SwapMoveSelector ) already handle 1-sized chains. |
ValueSelectorConfig |
getValueSelectorConfig() |
void |
inherit(SubChainSelectorConfig inheritedConfig) |
void |
setMaximumSubChainSize(Integer maximumSubChainSize) |
void |
setMinimumSubChainSize(Integer minimumSubChainSize) |
void |
setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig) |
String |
toString() |
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptors, inherit, validateCacheTypeVersusSelectionOrder
protected ValueSelectorConfig valueSelectorConfig
protected Integer minimumSubChainSize
protected Integer maximumSubChainSize
public ValueSelectorConfig getValueSelectorConfig()
public void setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)
public Integer getMinimumSubChainSize()
MoveSelector
s
s(uch as ChangeMoveSelector
and SwapMoveSelector
) already handle 1-sized chains.public void setMinimumSubChainSize(Integer minimumSubChainSize)
public Integer getMaximumSubChainSize()
public void setMaximumSubChainSize(Integer maximumSubChainSize)
public SubChainSelector buildSubChainSelector(HeuristicConfigPolicy configPolicy, PlanningEntityDescriptor entityDescriptor, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder)
configPolicy
- never nullentityDescriptor
- never nullminimumCacheType
- never null, If caching is used (different from SelectionCacheType.JUST_IN_TIME
),
then it should be at least this SelectionCacheType
because an ancestor already uses such caching
and less would be pointless.inheritedSelectionOrder
- never nullpublic void inherit(SubChainSelectorConfig inheritedConfig)
public String toString()
toString
in class SelectorConfig
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.