Class PillarSelectorConfig
- java.lang.Object
-
- org.optaplanner.core.config.AbstractConfig<C>
-
- org.optaplanner.core.config.heuristic.selector.SelectorConfig<PillarSelectorConfig>
-
- org.optaplanner.core.config.heuristic.selector.entity.pillar.PillarSelectorConfig
-
public class PillarSelectorConfig extends SelectorConfig<PillarSelectorConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected EntitySelectorConfigentitySelectorConfigprotected IntegermaximumSubPillarSizeprotected IntegerminimumSubPillarSizeprotected BooleansubPillarEnabled
-
Constructor Summary
Constructors Constructor Description PillarSelectorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PillarSelectorbuildPillarSelector(HeuristicConfigPolicy configPolicy, SubPillarType subPillarType, Class<? extends Comparator> subPillarSequenceComparatorClass, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder, List<String> variableNameIncludeList)PillarSelectorConfigcopyConfig()Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on itEntitySelectorConfiggetEntitySelectorConfig()IntegergetMaximumSubPillarSize()IntegergetMinimumSubPillarSize()BooleangetSubPillarEnabled()Deprecated.in favor of SubPillarTypePillarSelectorConfiginherit(PillarSelectorConfig inheritedConfig)Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidsetEntitySelectorConfig(EntitySelectorConfig entitySelectorConfig)voidsetMaximumSubPillarSize(Integer maximumSubPillarSize)voidsetMinimumSubPillarSize(Integer minimumSubPillarSize)voidsetSubPillarEnabled(Boolean subPillarEnabled)Deprecated.in favor of SubPillarTypeStringtoString()-
Methods inherited from class org.optaplanner.core.config.heuristic.selector.SelectorConfig
validateCacheTypeVersusSelectionOrder
-
Methods inherited from class org.optaplanner.core.config.AbstractConfig
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList
-
-
-
-
Field Detail
-
entitySelectorConfig
protected EntitySelectorConfig entitySelectorConfig
-
subPillarEnabled
protected Boolean subPillarEnabled
-
minimumSubPillarSize
protected Integer minimumSubPillarSize
-
maximumSubPillarSize
protected Integer maximumSubPillarSize
-
-
Method Detail
-
getEntitySelectorConfig
public EntitySelectorConfig getEntitySelectorConfig()
-
setEntitySelectorConfig
public void setEntitySelectorConfig(EntitySelectorConfig entitySelectorConfig)
-
getSubPillarEnabled
@Deprecated public Boolean getSubPillarEnabled()
Deprecated.in favor of SubPillarType- Returns:
- Null when not set.
- See Also:
and its uses in pillar move selectors.
-
setSubPillarEnabled
@Deprecated public void setSubPillarEnabled(Boolean subPillarEnabled)
Deprecated.in favor of SubPillarType- Parameters:
subPillarEnabled- true to enable, false to disable, null to leave unset.- See Also:
and its uses in pillar move selectors.
-
getMinimumSubPillarSize
public Integer getMinimumSubPillarSize()
-
setMinimumSubPillarSize
public void setMinimumSubPillarSize(Integer minimumSubPillarSize)
-
getMaximumSubPillarSize
public Integer getMaximumSubPillarSize()
-
setMaximumSubPillarSize
public void setMaximumSubPillarSize(Integer maximumSubPillarSize)
-
buildPillarSelector
public PillarSelector buildPillarSelector(HeuristicConfigPolicy configPolicy, SubPillarType subPillarType, Class<? extends Comparator> subPillarSequenceComparatorClass, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder, List<String> variableNameIncludeList)
- Parameters:
configPolicy- never nullsubPillarType- if null, defaults toSubPillarType.ALLfor backwards compatibility reasons.subPillarSequenceComparatorClass- if not null, will force entites 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 thisSelectionCacheTypebecause an ancestor already uses such caching and less would be pointless.inheritedSelectionOrder- never nullvariableNameIncludeList- sometimes null- Returns:
- never null
-
inherit
public PillarSelectorConfig inherit(PillarSelectorConfig inheritedConfig)
Description copied from class:AbstractConfigInherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this
AbstractConfigcomposition is replaced, it should not affect the inherited composition instance.- Specified by:
inheritin classAbstractConfig<PillarSelectorConfig>- Parameters:
inheritedConfig- never null- Returns:
- this
-
copyConfig
public PillarSelectorConfig copyConfig()
Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it- Specified by:
copyConfigin classAbstractConfig<PillarSelectorConfig>- Returns:
- new instance
-
toString
public String toString()
- Overrides:
toStringin classAbstractConfig<PillarSelectorConfig>
-
-