Class ListChangeMoveSelectorConfig
- 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<ListChangeMoveSelectorConfig>
-
- ai.timefold.solver.core.config.heuristic.selector.move.generic.list.ListChangeMoveSelectorConfig
-
public class ListChangeMoveSelectorConfig extends MoveSelectorConfig<ListChangeMoveSelectorConfig>
-
-
Field Summary
Fields Modifier and Type Field Description 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 ListChangeMoveSelectorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListChangeMoveSelectorConfigcopyConfig()Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.DestinationSelectorConfiggetDestinationSelectorConfig()ValueSelectorConfiggetValueSelectorConfig()ListChangeMoveSelectorConfiginherit(ListChangeMoveSelectorConfig 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)voidsetValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)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).ListChangeMoveSelectorConfigwithDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)ListChangeMoveSelectorConfigwithValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)-
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
-
-
Method Detail
-
getValueSelectorConfig
public ValueSelectorConfig getValueSelectorConfig()
-
setValueSelectorConfig
public void setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)
-
getDestinationSelectorConfig
public DestinationSelectorConfig getDestinationSelectorConfig()
-
setDestinationSelectorConfig
public void setDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)
-
withValueSelectorConfig
public ListChangeMoveSelectorConfig withValueSelectorConfig(ValueSelectorConfig valueSelectorConfig)
-
withDestinationSelectorConfig
public ListChangeMoveSelectorConfig withDestinationSelectorConfig(DestinationSelectorConfig destinationSelectorConfig)
-
inherit
public ListChangeMoveSelectorConfig inherit(ListChangeMoveSelectorConfig 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<ListChangeMoveSelectorConfig>- Parameters:
inheritedConfig- never null- Returns:
- this
-
copyConfig
public ListChangeMoveSelectorConfig copyConfig()
Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.- Specified by:
copyConfigin classAbstractConfig<ListChangeMoveSelectorConfig>- 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<ListChangeMoveSelectorConfig>- Parameters:
classVisitor- The visitor of classes, never null. Can accept null instances of Class.
-
toString
public String toString()
- Overrides:
toStringin classAbstractConfig<ListChangeMoveSelectorConfig>
-
-