Class PillarSelectorFactory<Solution_>
java.lang.Object
org.optaplanner.core.impl.AbstractFromConfigFactory<Solution_,SelectorConfig_>
org.optaplanner.core.impl.heuristic.selector.AbstractSelectorFactory<Solution_,PillarSelectorConfig>
org.optaplanner.core.impl.heuristic.selector.entity.pillar.PillarSelectorFactory<Solution_>
public class PillarSelectorFactory<Solution_>
extends AbstractSelectorFactory<Solution_,PillarSelectorConfig>
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.AbstractFromConfigFactory
config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildPillarSelector
(HeuristicConfigPolicy<Solution_> configPolicy, SubPillarType subPillarType, Class<? extends Comparator<Object>> subPillarSequenceComparatorClass, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder, List<String> variableNameIncludeList) static <Solution_>
PillarSelectorFactory<Solution_>create
(PillarSelectorConfig pillarSelectorConfig) Methods inherited from class org.optaplanner.core.impl.heuristic.selector.AbstractSelectorFactory
validateCacheTypeVersusSelectionOrder
Methods inherited from class org.optaplanner.core.impl.AbstractFromConfigFactory
deduceEntityDescriptor, deduceGenuineVariableDescriptor, deduceVariableDescriptorList, getDefaultEntitySelectorConfigForEntity, getTheOnlyEntityDescriptor, getTheOnlyVariableDescriptor, getVariableDescriptorForName
-
Constructor Details
-
PillarSelectorFactory
-
-
Method Details
-
create
public static <Solution_> PillarSelectorFactory<Solution_> create(PillarSelectorConfig pillarSelectorConfig) -
buildPillarSelector
public PillarSelector<Solution_> buildPillarSelector(HeuristicConfigPolicy<Solution_> configPolicy, SubPillarType subPillarType, Class<? extends Comparator<Object>> subPillarSequenceComparatorClass, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder, List<String> variableNameIncludeList) - Parameters:
configPolicy
- never nullsubPillarType
- if null, defaults toSubPillarType.ALL
for backwards compatibility reasons.subPillarSequenceComparatorClass
- if not null, will force entities in the pillar to come in this orderminimumCacheType
- 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 nullvariableNameIncludeList
- sometimes null- Returns:
- never null
-