Class SubListChangeMoveSelectorConfig
- java.lang.Object
-
- ai.timefold.solver.core.config.AbstractConfig<Config_>
-
- ai.timefold.solver.core.config.heuristic.selector.SelectorConfig<Config_>
-
- ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig<SubListChangeMoveSelectorConfig>
-
- ai.timefold.solver.core.config.heuristic.selector.move.generic.list.SubListChangeMoveSelectorConfig
-
public class SubListChangeMoveSelectorConfig extends MoveSelectorConfig<SubListChangeMoveSelectorConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected IntegermaximumSubListSizeDeprecated, for removal: This API element is subject to removal in a future version.The maximumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold.protected IntegerminimumSubListSizeDeprecated, for removal: This API element is subject to removal in a future version.The minimumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold.static StringXML_ELEMENT_NAME-
Fields inherited from class ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig
cacheType, filterClass, probabilityWeightFactoryClass, selectedCountLimit, selectionOrder, sorterClass, sorterComparatorClass, sorterOrder, sorterWeightFactoryClass
-
-
Constructor Summary
Constructors Constructor Description SubListChangeMoveSelectorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SubListChangeMoveSelectorConfigcopyConfig()Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.DestinationSelectorConfiggetDestinationSelectorConfig()IntegergetMaximumSubListSize()Deprecated, for removal: This API element is subject to removal in a future version.The maximumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold.IntegergetMinimumSubListSize()Deprecated, for removal: This API element is subject to removal in a future version.The minimumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold.BooleangetSelectReversingMoveToo()SubListSelectorConfiggetSubListSelectorConfig()SubListChangeMoveSelectorConfiginherit(SubListChangeMoveSelectorConfig inheritedConfig)Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidsetDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)voidsetMaximumSubListSize(Integer maximumSubListSize)Deprecated, for removal: This API element is subject to removal in a future version.The maximumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold.voidsetMinimumSubListSize(Integer minimumSubListSize)Deprecated, for removal: This API element is subject to removal in a future version.The minimumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold.voidsetSelectReversingMoveToo(Boolean selectReversingMoveToo)voidsetSubListSelectorConfig(SubListSelectorConfig subListSelectorConfig)StringtoString()voidvisitReferencedClasses(Consumer<Class<?>> classVisitor)Call the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs).SubListChangeMoveSelectorConfigwithDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)SubListChangeMoveSelectorConfigwithSelectReversingMoveToo(Boolean selectReversingMoveToo)SubListChangeMoveSelectorConfigwithSubListSelectorConfig(SubListSelectorConfig subListSelectorConfig)-
Methods inherited from class ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig
extractLeafMoveSelectorConfigsIntoList, getCacheType, getFilterClass, getFixedProbabilityWeight, getProbabilityWeightFactoryClass, getSelectedCountLimit, getSelectionOrder, getSorterClass, getSorterComparatorClass, getSorterOrder, getSorterWeightFactoryClass, inheritFolded, setCacheType, setFilterClass, setFixedProbabilityWeight, setProbabilityWeightFactoryClass, setSelectedCountLimit, setSelectionOrder, setSorterClass, setSorterComparatorClass, setSorterOrder, setSorterWeightFactoryClass, visitCommonReferencedClasses, withCacheType, withFilterClass, withFixedProbabilityWeight, withProbabilityWeightFactoryClass, withSelectedCountLimit, withSelectionOrder, withSorterClass, withSorterComparatorClass, withSorterOrder, withSorterWeightFactoryClass
-
-
-
-
Field Detail
-
XML_ELEMENT_NAME
public static final String XML_ELEMENT_NAME
- See Also:
- Constant Field Values
-
minimumSubListSize
@Deprecated(forRemoval=true) protected Integer minimumSubListSize
Deprecated, for removal: This API element is subject to removal in a future version.The minimumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold. UseSubListSelectorConfig.getMinimumSubListSize()instead.
-
maximumSubListSize
@Deprecated(forRemoval=true) protected Integer maximumSubListSize
Deprecated, for removal: This API element is subject to removal in a future version.The maximumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold. UseSubListSelectorConfig.getMaximumSubListSize()instead.
-
-
Method Detail
-
getMinimumSubListSize
@Deprecated(forRemoval=true) public Integer getMinimumSubListSize()
Deprecated, for removal: This API element is subject to removal in a future version.The minimumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold. UseSubListSelectorConfig.getMinimumSubListSize()instead.
-
setMinimumSubListSize
@Deprecated(forRemoval=true) public void setMinimumSubListSize(Integer minimumSubListSize)
Deprecated, for removal: This API element is subject to removal in a future version.The minimumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold. UseSubListSelectorConfig.setMinimumSubListSize(Integer)instead.
-
getMaximumSubListSize
@Deprecated(forRemoval=true) public Integer getMaximumSubListSize()
Deprecated, for removal: This API element is subject to removal in a future version.The maximumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold. UseSubListSelectorConfig.getMaximumSubListSize()instead.
-
setMaximumSubListSize
@Deprecated(forRemoval=true) public void setMaximumSubListSize(Integer maximumSubListSize)
Deprecated, for removal: This API element is subject to removal in a future version.The maximumSubListSize on the SubListChangeMoveSelectorConfig is deprecated and will be removed in a future major version of Timefold. UseSubListSelectorConfig.setMaximumSubListSize(Integer)instead.
-
getSelectReversingMoveToo
public Boolean getSelectReversingMoveToo()
-
setSelectReversingMoveToo
public void setSelectReversingMoveToo(Boolean selectReversingMoveToo)
-
getSubListSelectorConfig
public SubListSelectorConfig getSubListSelectorConfig()
-
setSubListSelectorConfig
public void setSubListSelectorConfig(SubListSelectorConfig subListSelectorConfig)
-
getDestinationSelectorConfig
public DestinationSelectorConfig getDestinationSelectorConfig()
-
setDestinationSelectorConfig
public void setDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)
-
withSelectReversingMoveToo
public SubListChangeMoveSelectorConfig withSelectReversingMoveToo(Boolean selectReversingMoveToo)
-
withSubListSelectorConfig
public SubListChangeMoveSelectorConfig withSubListSelectorConfig(SubListSelectorConfig subListSelectorConfig)
-
withDestinationSelectorConfig
public SubListChangeMoveSelectorConfig withDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)
-
inherit
public SubListChangeMoveSelectorConfig inherit(SubListChangeMoveSelectorConfig 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.- Overrides:
inheritin classMoveSelectorConfig<SubListChangeMoveSelectorConfig>- Parameters:
inheritedConfig- never null- Returns:
- this
-
copyConfig
public SubListChangeMoveSelectorConfig copyConfig()
Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.- Specified by:
copyConfigin classAbstractConfig<SubListChangeMoveSelectorConfig>- Returns:
- new instance
-
visitReferencedClasses
public void visitReferencedClasses(Consumer<Class<?>> classVisitor)
Description copied from class:AbstractConfigCall the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs). Required to create the bean factory in Quarkus.- Specified by:
visitReferencedClassesin classAbstractConfig<SubListChangeMoveSelectorConfig>- Parameters:
classVisitor- The visitor of classes, never null. Can accept null instances of Class.
-
toString
public String toString()
- Overrides:
toStringin classAbstractConfig<SubListChangeMoveSelectorConfig>
-
-