Class SubChainSelectorConfig
java.lang.Object
ai.timefold.solver.core.config.AbstractConfig<Config_>
ai.timefold.solver.core.config.heuristic.selector.SelectorConfig<SubChainSelectorConfig>
ai.timefold.solver.core.config.heuristic.selector.value.chained.SubChainSelectorConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected Integerprotected ValueSelectorConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull SubChainSelectorConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.@Nullable Integer@Nullable Integer@Nullable ValueSelectorConfigbooleanVerifies if the current configuration has any Nearby Selection settings.@NonNull SubChainSelectorConfiginherit(@NonNull SubChainSelectorConfig inheritedConfig) Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidsetMaximumSubChainSize(@Nullable Integer maximumSubChainSize) voidsetMinimumSubChainSize(@Nullable Integer minimumSubChainSize) voidsetValueSelectorConfig(@Nullable ValueSelectorConfig valueSelectorConfig) toString()voidvisitReferencedClasses(@NonNull 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).@NonNull SubChainSelectorConfigwithMaximumSubChainSize(@NonNull Integer maximumSubChainSize) @NonNull SubChainSelectorConfigwithMinimumSubChainSize(@NonNull Integer minimumSubChainSize) @NonNull SubChainSelectorConfigwithValueSelectorConfig(@NonNull ValueSelectorConfig valueSelectorConfig)
-
Field Details
-
valueSelectorConfig
-
minimumSubChainSize
-
maximumSubChainSize
-
-
Constructor Details
-
SubChainSelectorConfig
public SubChainSelectorConfig()
-
-
Method Details
-
getValueSelectorConfig
-
setValueSelectorConfig
-
getMinimumSubChainSize
-
setMinimumSubChainSize
-
getMaximumSubChainSize
-
setMaximumSubChainSize
-
withValueSelectorConfig
public @NonNull SubChainSelectorConfig withValueSelectorConfig(@NonNull ValueSelectorConfig valueSelectorConfig) -
withMinimumSubChainSize
public @NonNull SubChainSelectorConfig withMinimumSubChainSize(@NonNull Integer minimumSubChainSize) -
withMaximumSubChainSize
public @NonNull SubChainSelectorConfig withMaximumSubChainSize(@NonNull Integer maximumSubChainSize) -
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<SubChainSelectorConfig>- Returns:
- this
-
copyConfig
Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.- Specified by:
copyConfigin classAbstractConfig<SubChainSelectorConfig>- Returns:
- new instance
-
visitReferencedClasses
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<SubChainSelectorConfig>- Parameters:
classVisitor- The visitor of classes. Can accept null instances of Class.
-
hasNearbySelectionConfig
public boolean hasNearbySelectionConfig()Description copied from class:SelectorConfigVerifies if the current configuration has any Nearby Selection settings.- Specified by:
hasNearbySelectionConfigin classSelectorConfig<SubChainSelectorConfig>
-
toString
- Overrides:
toStringin classAbstractConfig<SubChainSelectorConfig>
-