Class SubChainSelectorFactory<Solution_>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.value.chained.SubChainSelectorFactory<Solution_>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildSubChainSelector
(HeuristicConfigPolicy<Solution_> configPolicy, EntityDescriptor<Solution_> entityDescriptor, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder) static <Solution_>
SubChainSelectorFactory<Solution_>create
(SubChainSelectorConfig subChainSelectorConfig)
-
Constructor Details
-
SubChainSelectorFactory
-
-
Method Details
-
create
public static <Solution_> SubChainSelectorFactory<Solution_> create(SubChainSelectorConfig subChainSelectorConfig) -
buildSubChainSelector
public SubChainSelector<Solution_> buildSubChainSelector(HeuristicConfigPolicy<Solution_> configPolicy, EntityDescriptor<Solution_> entityDescriptor, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder) - Parameters:
configPolicy
- never nullentityDescriptor
- 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.inheritedSelectionOrder
- never null- Returns:
- never null
-