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(@NonNull List<@NonNull MoveSelectorConfig> leafMoveSelectorConfigList) Gather a list of all descendantMoveSelectorConfigs except forUnionMoveSelectorConfigandCartesianProductMoveSelectorConfig.@Nullable SelectionCacheType@Nullable Class<? extends SelectionFilter>@Nullable Double@Nullable Class<? extends SelectionProbabilityWeightFactory>@Nullable Long@Nullable SelectionOrder@Nullable Class<? extends SelectionSorter>@Nullable Class<? extends Comparator>@Nullable SelectionSorterOrder@Nullable Class<? extends SelectionSorterWeightFactory>@NonNull Config_Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidinheritFolded(@NonNull MoveSelectorConfig<?> foldedConfig) Does not inherit subclass properties because this class andfoldedConfigcan be of a different type.voidsetCacheType(@Nullable SelectionCacheType cacheType) 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) voidsetSorterOrder(@Nullable SelectionSorterOrder sorterOrder) voidsetSorterWeightFactoryClass(@Nullable Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) protected voidvisitCommonReferencedClasses(@NonNull Consumer<Class<?>> classVisitor) @NonNull Config_withCacheType(@NonNull SelectionCacheType cacheType) @NonNull Config_withFilterClass(@NonNull Class<? extends SelectionFilter> filterClass) @NonNull Config_withFixedProbabilityWeight(@NonNull Double fixedProbabilityWeight) @NonNull Config_withProbabilityWeightFactoryClass(@NonNull Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) @NonNull Config_withSelectedCountLimit(@NonNull Long selectedCountLimit) @NonNull Config_withSelectionOrder(@NonNull SelectionOrder selectionOrder) @NonNull Config_withSorterClass(@NonNull Class<? extends SelectionSorter> sorterClass) @NonNull Config_withSorterComparatorClass(@NonNull Class<? extends Comparator> sorterComparatorClass) @NonNull Config_withSorterOrder(@NonNull SelectionSorterOrder sorterOrder) @NonNull Config_withSorterWeightFactoryClass(@NonNull 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(@Nullable Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) -
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
public @NonNull Config_ withSorterComparatorClass(@NonNull Class<? extends Comparator> sorterComparatorClass) -
withSorterWeightFactoryClass
public @NonNull Config_ withSorterWeightFactoryClass(@NonNull Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass) -
withSorterOrder
-
withSorterClass
-
withProbabilityWeightFactoryClass
public @NonNull Config_ withProbabilityWeightFactoryClass(@NonNull Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass) -
withSelectedCountLimit
-
withFixedProbabilityWeight
-
extractLeafMoveSelectorConfigsIntoList
public void extractLeafMoveSelectorConfigsIntoList(@NonNull List<@NonNull 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
-