org.drools.planner.config.heuristic.selector.move
Class MoveSelectorConfig
java.lang.Object
org.drools.planner.config.heuristic.selector.SelectorConfig
org.drools.planner.config.heuristic.selector.move.MoveSelectorConfig
- Direct Known Subclasses:
- CartesianProductMoveSelectorConfig, ChangeMoveSelectorConfig, MoveIteratorFactoryConfig, MoveListFactoryConfig, PillarSwapMoveSelectorConfig, SubChainChangeMoveSelectorConfig, SubChainSwapMoveSelectorConfig, SwapMoveSelectorConfig, UnionMoveSelectorConfig
public abstract class MoveSelectorConfig
- extends SelectorConfig
General superclass for ChangeMoveSelectorConfig
, etc.
cacheType
protected SelectionCacheType cacheType
selectionOrder
protected SelectionOrder selectionOrder
moveFilterClassList
protected List<Class<? extends SelectionFilter>> moveFilterClassList
moveProbabilityWeightFactoryClass
protected Class<? extends SelectionProbabilityWeightFactory> moveProbabilityWeightFactoryClass
MoveSelectorConfig
public MoveSelectorConfig()
getCacheType
public SelectionCacheType getCacheType()
setCacheType
public void setCacheType(SelectionCacheType cacheType)
getSelectionOrder
public SelectionOrder getSelectionOrder()
setSelectionOrder
public void setSelectionOrder(SelectionOrder selectionOrder)
getMoveFilterClassList
public List<Class<? extends SelectionFilter>> getMoveFilterClassList()
setMoveFilterClassList
public void setMoveFilterClassList(List<Class<? extends SelectionFilter>> moveFilterClassList)
getMoveProbabilityWeightFactoryClass
public Class<? extends SelectionProbabilityWeightFactory> getMoveProbabilityWeightFactoryClass()
setMoveProbabilityWeightFactoryClass
public void setMoveProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory> moveProbabilityWeightFactoryClass)
getFixedProbabilityWeight
public Double getFixedProbabilityWeight()
setFixedProbabilityWeight
public void setFixedProbabilityWeight(Double fixedProbabilityWeight)
buildMoveSelector
public MoveSelector buildMoveSelector(EnvironmentMode environmentMode,
SolutionDescriptor solutionDescriptor,
SelectionCacheType minimumCacheType,
SelectionOrder inheritedSelectionOrder)
- Parameters:
environmentMode
- never nullsolutionDescriptor
- 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
buildBaseMoveSelector
protected abstract MoveSelector buildBaseMoveSelector(EnvironmentMode environmentMode,
SolutionDescriptor solutionDescriptor,
SelectionCacheType minimumCacheType,
SelectionOrder resolvedSelectionOrder)
- Parameters:
environmentMode
- never nullsolutionDescriptor
- 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.resolvedSelectionOrder
- never null
- Returns:
- never null
inherit
protected void inherit(MoveSelectorConfig inheritedConfig)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.