org.drools.planner.config.heuristic.selector.value.chained
Class SubChainSelectorConfig
java.lang.Object
org.drools.planner.config.heuristic.selector.SelectorConfig
org.drools.planner.config.heuristic.selector.value.chained.SubChainSelectorConfig
public class SubChainSelectorConfig
- extends SelectorConfig
valueSelectorConfig
protected ValueSelectorConfig valueSelectorConfig
minimumSubChainSize
protected Integer minimumSubChainSize
maximumSubChainSize
protected Integer maximumSubChainSize
SubChainSelectorConfig
public SubChainSelectorConfig()
getValueSelectorConfig
public ValueSelectorConfig getValueSelectorConfig()
setValueSelectorConfig
public void setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)
getMinimumSubChainSize
public Integer getMinimumSubChainSize()
- Defaults to because other
MoveSelector
s
s(uch as ChangeMoveSelector
and SwapMoveSelector
) already handle 1-sized chains.
- Returns:
- sometimes null
setMinimumSubChainSize
public void setMinimumSubChainSize(Integer minimumSubChainSize)
getMaximumSubChainSize
public Integer getMaximumSubChainSize()
setMaximumSubChainSize
public void setMaximumSubChainSize(Integer maximumSubChainSize)
buildSubChainSelector
public SubChainSelector buildSubChainSelector(EnvironmentMode environmentMode,
SolutionDescriptor solutionDescriptor,
PlanningEntityDescriptor entityDescriptor,
SelectionCacheType minimumCacheType,
SelectionOrder inheritedSelectionOrder)
- Parameters:
environmentMode
- never nullsolutionDescriptor
- 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 null
- Returns:
- never null
inherit
public void inherit(SubChainSelectorConfig inheritedConfig)
toString
public String toString()
- Overrides:
toString
in class SelectorConfig
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.