org.drools.planner.config.heuristic.selector.value.chained
Class SubChainSelectorConfig

java.lang.Object
  extended by org.drools.planner.config.heuristic.selector.SelectorConfig
      extended by org.drools.planner.config.heuristic.selector.value.chained.SubChainSelectorConfig

public class SubChainSelectorConfig
extends SelectorConfig


Field Summary
protected  Integer minimumSubChainSize
           
protected  ValueSelectorConfig valueSelectorConfig
           
 
Constructor Summary
SubChainSelectorConfig()
           
 
Method Summary
 SubChainSelector buildSubChainSelector(EnvironmentMode environmentMode, SolutionDescriptor solutionDescriptor, PlanningEntityDescriptor entityDescriptor, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder)
           
 Integer getMinimumSubChainSize()
          Defaults to because other MoveSelectors s(uch as ChangeMoveSelector and SwapMoveSelector) already handle 1-sized chains.
 ValueSelectorConfig getValueSelectorConfig()
           
 void inherit(SubChainSelectorConfig inheritedConfig)
           
 void setMinimumSubChainSize(Integer minimumSubChainSize)
           
 void setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)
           
 String toString()
           
 
Methods inherited from class org.drools.planner.config.heuristic.selector.SelectorConfig
inherit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

valueSelectorConfig

protected ValueSelectorConfig valueSelectorConfig

minimumSubChainSize

protected Integer minimumSubChainSize
Constructor Detail

SubChainSelectorConfig

public SubChainSelectorConfig()
Method Detail

getValueSelectorConfig

public ValueSelectorConfig getValueSelectorConfig()

setValueSelectorConfig

public void setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)

getMinimumSubChainSize

public Integer getMinimumSubChainSize()
Defaults to because other MoveSelectors s(uch as ChangeMoveSelector and SwapMoveSelector) already handle 1-sized chains.

Returns:
sometimes null

setMinimumSubChainSize

public void setMinimumSubChainSize(Integer minimumSubChainSize)

buildSubChainSelector

public SubChainSelector buildSubChainSelector(EnvironmentMode environmentMode,
                                              SolutionDescriptor solutionDescriptor,
                                              PlanningEntityDescriptor entityDescriptor,
                                              SelectionCacheType minimumCacheType,
                                              SelectionOrder inheritedSelectionOrder)
Parameters:
environmentMode - never null
solutionDescriptor - never null
entityDescriptor - never null
minimumCacheType - 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-2014 JBoss by Red Hat. All Rights Reserved.