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,ListRuinRecreateMoveSelectorConfig,ListSwapMoveSelectorConfig,MoveIteratorFactoryConfig,MoveListFactoryConfig,RuinRecreateMoveSelectorConfig,SubChainChangeMoveSelectorConfig,SubChainSwapMoveSelectorConfig,SubListChangeMoveSelectorConfig,SubListSwapMoveSelectorConfig,SwapMoveSelectorConfig,TailChainSwapMoveSelectorConfig,UnionMoveSelectorConfig
public abstract class MoveSelectorConfig<Config_ extends MoveSelectorConfig<Config_>>
extends SelectorConfig<Config_>
General superclass for
ChangeMoveSelectorConfig, etc.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SelectionCacheTypeprotected Class<? extends SelectionFilter>protected Class<? extends SelectionProbabilityWeightFactory>protected Longprotected SelectionOrderprotected Class<? extends SelectionSorter>protected Class<? extends Comparator>protected SelectionSorterOrderprotected Class<? extends SelectionSorterWeightFactory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractLeafMoveSelectorConfigsIntoList(List<MoveSelectorConfig> leafMoveSelectorConfigList) Gather a list of all descendantMoveSelectorConfigs except forUnionMoveSelectorConfigandCartesianProductMoveSelectorConfig.Class<? extends SelectionFilter>Class<? extends SelectionProbabilityWeightFactory>Class<? extends SelectionSorter>Class<? extends Comparator>Class<? extends SelectionSorterWeightFactory>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(SelectionCacheType cacheType) voidsetFilterClass(Class<? extends SelectionFilter> filterClass) voidsetFixedProbabilityWeight(Double fixedProbabilityWeight) voidsetProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) voidsetSelectedCountLimit(Long selectedCountLimit) voidsetSelectionOrder(SelectionOrder selectionOrder) voidsetSorterClass(Class<? extends SelectionSorter> sorterClass) voidsetSorterComparatorClass(Class<? extends Comparator> sorterComparatorClass) voidsetSorterOrder(SelectionSorterOrder sorterOrder) voidsetSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) protected voidvisitCommonReferencedClasses(Consumer<Class<?>> classVisitor) withCacheType(SelectionCacheType cacheType) 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) withSorterOrder(SelectionSorterOrder sorterOrder) withSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) 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
-
sorterWeightFactoryClass
-
sorterOrder
-
sorterClass
-
probabilityWeightFactoryClass
-
selectedCountLimit
-
-
Constructor Details
-
MoveSelectorConfig
public MoveSelectorConfig()
-
-
Method Details
-
getCacheType
-
setCacheType
-
getSelectionOrder
-
setSelectionOrder
-
getFilterClass
-
setFilterClass
-
getSorterComparatorClass
-
setSorterComparatorClass
-
getSorterWeightFactoryClass
-
setSorterWeightFactoryClass
public void setSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) -
getSorterOrder
-
setSorterOrder
-
getSorterClass
-
setSorterClass
-
getProbabilityWeightFactoryClass
-
setProbabilityWeightFactoryClass
public void setProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) -
getSelectedCountLimit
-
setSelectedCountLimit
-
getFixedProbabilityWeight
-
setFixedProbabilityWeight
-
withCacheType
-
withSelectionOrder
-
withFilterClass
-
withSorterComparatorClass
-
withSorterWeightFactoryClass
public Config_ withSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) -
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.- Parameters:
leafMoveSelectorConfigList- not null
-
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_>>- Parameters:
inheritedConfig- never null- Returns:
- this
-
inheritFolded
Does not inherit subclass properties because this class andfoldedConfigcan be of a different type.- Parameters:
foldedConfig- never null
-
visitCommonReferencedClasses
-