Class UnionMoveSelectorFactory<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.AbstractFromConfigFactory<Solution_,SelectorConfig_>
-
- org.optaplanner.core.impl.heuristic.selector.AbstractSelectorFactory<Solution_,MoveSelectorConfig_>
-
- org.optaplanner.core.impl.heuristic.selector.move.AbstractMoveSelectorFactory<Solution_,MoveSelectorConfig_>
-
- org.optaplanner.core.impl.heuristic.selector.move.composite.UnionMoveSelectorFactory<Solution_>
-
- All Implemented Interfaces:
MoveSelectorFactory<Solution_>
public class UnionMoveSelectorFactory<Solution_> extends AbstractMoveSelectorFactory<Solution_,MoveSelectorConfig_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.AbstractFromConfigFactory
config
-
-
Constructor Summary
Constructors Constructor Description UnionMoveSelectorFactory(UnionMoveSelectorConfig moveSelectorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MoveSelector<Solution_>
buildBaseMoveSelector(HeuristicConfigPolicy<Solution_> configPolicy, SelectionCacheType minimumCacheType, boolean randomSelection)
Builds a baseMoveSelector
without any advanced capabilities (filtering, sorting, ...).protected List<MoveSelector<Solution_>>
buildInnerMoveSelectors(List<MoveSelectorConfig> innerMoveSelectorList, HeuristicConfigPolicy<Solution_> configPolicy, SelectionCacheType minimumCacheType, boolean randomSelection)
-
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.move.AbstractMoveSelectorFactory
applySorting, buildMoveSelector, buildUnfoldedMoveSelectorConfig, determineBaseRandomSelection, isBaseInherentlyCached, validateSorting
-
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.AbstractSelectorFactory
validateCacheTypeVersusSelectionOrder
-
Methods inherited from class org.optaplanner.core.impl.AbstractFromConfigFactory
deduceEntityDescriptor, deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList
-
-
-
-
Constructor Detail
-
UnionMoveSelectorFactory
public UnionMoveSelectorFactory(UnionMoveSelectorConfig moveSelectorConfig)
-
-
Method Detail
-
buildBaseMoveSelector
public MoveSelector<Solution_> buildBaseMoveSelector(HeuristicConfigPolicy<Solution_> configPolicy, SelectionCacheType minimumCacheType, boolean randomSelection)
Description copied from class:AbstractMoveSelectorFactory
Builds a baseMoveSelector
without any advanced capabilities (filtering, sorting, ...).- Specified by:
buildBaseMoveSelector
in classAbstractMoveSelectorFactory<Solution_,UnionMoveSelectorConfig>
- Parameters:
configPolicy
- never nullminimumCacheType
- never null, If caching is used (different fromSelectionCacheType.JUST_IN_TIME
), then it should be at least thisSelectionCacheType
because an ancestor already uses such caching and less would be pointless.randomSelection
- true is equivalent toSelectionOrder.RANDOM
, false is equivalent toSelectionOrder.ORIGINAL
- Returns:
- never null
-
buildInnerMoveSelectors
protected List<MoveSelector<Solution_>> buildInnerMoveSelectors(List<MoveSelectorConfig> innerMoveSelectorList, HeuristicConfigPolicy<Solution_> configPolicy, SelectionCacheType minimumCacheType, boolean randomSelection)
-
-