Class LocalSearchForagerConfig
java.lang.Object
ai.timefold.solver.core.config.AbstractConfig<LocalSearchForagerConfig>
ai.timefold.solver.core.config.localsearch.decider.forager.LocalSearchForagerConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected Booleanprotected FinalistPodiumTypeprotected LocalSearchPickEarlyType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull LocalSearchForagerConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.@Nullable Integer@Nullable Boolean@Nullable FinalistPodiumType@Nullable LocalSearchPickEarlyType@NonNull LocalSearchForagerConfiginherit(@NonNull LocalSearchForagerConfig inheritedConfig) Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidsetAcceptedCountLimit(@Nullable Integer acceptedCountLimit) voidsetBreakTieRandomly(@Nullable Boolean breakTieRandomly) voidsetFinalistPodiumType(@Nullable FinalistPodiumType finalistPodiumType) voidsetPickEarlyType(@Nullable LocalSearchPickEarlyType pickEarlyType) 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 LocalSearchForagerConfigwithAcceptedCountLimit(int acceptedCountLimit) @NonNull LocalSearchForagerConfigwithBreakTieRandomly(boolean breakTieRandomly) @NonNull LocalSearchForagerConfigwithFinalistPodiumType(@NonNull FinalistPodiumType finalistPodiumType) @NonNull LocalSearchForagerConfigwithPickEarlyType(@NonNull LocalSearchPickEarlyType pickEarlyType) Methods inherited from class ai.timefold.solver.core.config.AbstractConfig
toString
-
Field Details
-
pickEarlyType
-
acceptedCountLimit
-
finalistPodiumType
-
breakTieRandomly
-
-
Constructor Details
-
LocalSearchForagerConfig
public LocalSearchForagerConfig()
-
-
Method Details
-
getPickEarlyType
-
setPickEarlyType
-
getAcceptedCountLimit
-
setAcceptedCountLimit
-
getFinalistPodiumType
-
setFinalistPodiumType
-
getBreakTieRandomly
-
setBreakTieRandomly
-
withPickEarlyType
public @NonNull LocalSearchForagerConfig withPickEarlyType(@NonNull LocalSearchPickEarlyType pickEarlyType) -
withAcceptedCountLimit
-
withFinalistPodiumType
public @NonNull LocalSearchForagerConfig withFinalistPodiumType(@NonNull FinalistPodiumType finalistPodiumType) -
withBreakTieRandomly
-
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<LocalSearchForagerConfig>- Returns:
- this
-
copyConfig
Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.- Specified by:
copyConfigin classAbstractConfig<LocalSearchForagerConfig>- 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<LocalSearchForagerConfig>- Parameters:
classVisitor- The visitor of classes. Can accept null instances of Class.
-