Class MoveSelectorConfig<Config_ extends MoveSelectorConfig<Config_>>
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<Config_>
- Direct Known Subclasses:
AbstractPillarMoveSelectorConfig,CartesianProductMoveSelectorConfig,ChangeMoveSelectorConfig,KOptListMoveSelectorConfig,KOptMoveSelectorConfig,ListChangeMoveSelectorConfig,ListMultistageMoveSelectorConfig,ListRuinRecreateMoveSelectorConfig,ListSwapMoveSelectorConfig,MoveIteratorFactoryConfig,MoveListFactoryConfig,MultistageMoveSelectorConfig,RuinRecreateMoveSelectorConfig,SubChainChangeMoveSelectorConfig,SubChainSwapMoveSelectorConfig,SubListChangeMoveSelectorConfig,SubListSwapMoveSelectorConfig,SwapMoveSelectorConfig,TailChainSwapMoveSelectorConfig,UnionMoveSelectorConfig
@NullMarked
public abstract class MoveSelectorConfig<Config_ extends MoveSelectorConfig<Config_>>
extends SelectorConfig<Config_>
General superclass for
ChangeMoveSelectorConfig, etc.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable SelectionCacheTypeprotected @Nullable Class<? extends Comparator>protected @Nullable Class<? extends ComparatorFactory>protected @Nullable Class<? extends SelectionFilter>protected @Nullable Class<? extends SelectionProbabilityWeightFactory>protected @Nullable Longprotected @Nullable SelectionOrderprotected @Nullable Class<? extends SelectionSorter>protected @Nullable Class<? extends Comparator>Deprecated, for removal: This API element is subject to removal in a future version.protected @Nullable SelectionSorterOrderprotected @Nullable Class<? extends SelectionSorterWeightFactory>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcomparatorFactoryClass. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractLeafMoveSelectorConfigsIntoList(List<MoveSelectorConfig> leafMoveSelectorConfigList) Gather a list of all descendantMoveSelectorConfigs except forUnionMoveSelectorConfigandCartesianProductMoveSelectorConfig.@Nullable SelectionCacheType@Nullable Class<? extends Comparator>@Nullable Class<? extends ComparatorFactory>@Nullable Class<? extends SelectionFilter>@Nullable Double@Nullable Class<? extends SelectionProbabilityWeightFactory>@Nullable Long@Nullable SelectionOrder@Nullable Class<? extends SelectionSorter>@Nullable Class<? extends Comparator>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofgetComparatorClass()@Nullable SelectionSorterOrder@Nullable Class<? extends SelectionSorterWeightFactory>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofgetComparatorFactoryClass()Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidinheritFolded(MoveSelectorConfig<?> foldedConfig) Does not inherit subclass properties because this class andfoldedConfigcan be of a different type.voidsetCacheType(@Nullable SelectionCacheType cacheType) voidsetComparatorClass(@Nullable Class<? extends Comparator> comparatorClass) voidsetComparatorFactoryClass(@Nullable Class<? extends ComparatorFactory> comparatorFactoryClass) voidsetFilterClass(@Nullable Class<? extends SelectionFilter> filterClass) voidsetFixedProbabilityWeight(@Nullable Double fixedProbabilityWeight) voidsetProbabilityWeightFactoryClass(@Nullable Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) voidsetSelectedCountLimit(@Nullable Long selectedCountLimit) voidsetSelectionOrder(@Nullable SelectionOrder selectionOrder) voidsetSorterClass(@Nullable Class<? extends SelectionSorter> sorterClass) voidsetSorterComparatorClass(@Nullable Class<? extends Comparator> sorterComparatorClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofsetComparatorClass(Class)voidsetSorterOrder(@Nullable SelectionSorterOrder sorterOrder) voidsetSorterWeightFactoryClass(@Nullable Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofsetComparatorFactoryClass(Class)protected voidvisitCommonReferencedClasses(Consumer<Class<?>> classVisitor) withCacheType(SelectionCacheType cacheType) withComparatorClass(Class<? extends Comparator> comparatorClass) withComparatorFactoryClass(Class<? extends ComparatorFactory> comparatorFactoryClass) withFilterClass(Class<? extends SelectionFilter> filterClass) withFixedProbabilityWeight(Double fixedProbabilityWeight) withProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) withSelectedCountLimit(Long selectedCountLimit) withSelectionOrder(SelectionOrder selectionOrder) withSorterClass(Class<? extends SelectionSorter> sorterClass) withSorterComparatorClass(Class<? extends Comparator> sorterComparatorClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofwithComparatorClass(Class)withSorterOrder(SelectionSorterOrder sorterOrder) withSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofwithComparatorFactoryClass(Class)Methods inherited from class ai.timefold.solver.core.config.heuristic.selector.SelectorConfig
hasNearbySelectionConfigMethods inherited from class ai.timefold.solver.core.config.AbstractConfig
copyConfig, toString, visitReferencedClasses
-
Field Details
-
cacheType
-
selectionOrder
-
filterClass
-
sorterComparatorClass
@Deprecated(forRemoval=true, since="1.28.0") protected @Nullable Class<? extends Comparator> sorterComparatorClassDeprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcomparatorClass. -
comparatorClass
-
sorterWeightFactoryClass
@Deprecated(forRemoval=true, since="1.28.0") protected @Nullable Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClassDeprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcomparatorFactoryClass. -
comparatorFactoryClass
-
sorterOrder
-
sorterClass
-
probabilityWeightFactoryClass
protected @Nullable Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass -
selectedCountLimit
-
-
Constructor Details
-
MoveSelectorConfig
public MoveSelectorConfig()
-
-
Method Details
-
getCacheType
-
setCacheType
-
getSelectionOrder
-
setSelectionOrder
-
getFilterClass
-
setFilterClass
-
getSorterComparatorClass
@Deprecated(forRemoval=true, since="1.28.0") public @Nullable Class<? extends Comparator> getSorterComparatorClass()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofgetComparatorClass() -
setSorterComparatorClass
@Deprecated(forRemoval=true, since="1.28.0") public void setSorterComparatorClass(@Nullable Class<? extends Comparator> sorterComparatorClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofsetComparatorClass(Class) -
getComparatorClass
-
setComparatorClass
-
getSorterWeightFactoryClass
@Deprecated(forRemoval=true, since="1.28.0") public @Nullable Class<? extends SelectionSorterWeightFactory> getSorterWeightFactoryClass()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofgetComparatorFactoryClass() -
setSorterWeightFactoryClass
@Deprecated(forRemoval=true, since="1.28.0") public void setSorterWeightFactoryClass(@Nullable Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofsetComparatorFactoryClass(Class)- Parameters:
sorterWeightFactoryClass- the class
-
getComparatorFactoryClass
-
setComparatorFactoryClass
public void setComparatorFactoryClass(@Nullable Class<? extends ComparatorFactory> comparatorFactoryClass) -
getSorterOrder
-
setSorterOrder
-
getSorterClass
-
setSorterClass
-
getProbabilityWeightFactoryClass
public @Nullable Class<? extends SelectionProbabilityWeightFactory> getProbabilityWeightFactoryClass() -
setProbabilityWeightFactoryClass
public void setProbabilityWeightFactoryClass(@Nullable Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) -
getSelectedCountLimit
-
setSelectedCountLimit
-
getFixedProbabilityWeight
-
setFixedProbabilityWeight
-
withCacheType
-
withSelectionOrder
-
withFilterClass
-
withSorterComparatorClass
@Deprecated(forRemoval=true, since="1.28.0") public Config_ withSorterComparatorClass(Class<? extends Comparator> sorterComparatorClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofwithComparatorClass(Class) -
withComparatorClass
-
withSorterWeightFactoryClass
@Deprecated(forRemoval=true, since="1.28.0") public Config_ withSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofwithComparatorFactoryClass(Class)- Parameters:
sorterWeightFactoryClass- the factory class
-
withComparatorFactoryClass
public Config_ withComparatorFactoryClass(Class<? extends ComparatorFactory> comparatorFactoryClass) -
withSorterOrder
-
withSorterClass
-
withProbabilityWeightFactoryClass
public Config_ withProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) -
withSelectedCountLimit
-
withFixedProbabilityWeight
-
extractLeafMoveSelectorConfigsIntoList
public void extractLeafMoveSelectorConfigsIntoList(List<MoveSelectorConfig> leafMoveSelectorConfigList) Gather a list of all descendantMoveSelectorConfigs except forUnionMoveSelectorConfigandCartesianProductMoveSelectorConfig. -
inherit
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<Config_ extends MoveSelectorConfig<Config_>>- Returns:
- this
-
inheritFolded
Does not inherit subclass properties because this class andfoldedConfigcan be of a different type. -
visitCommonReferencedClasses
-
comparatorClass.