Class LocalSearchForagerConfig
- java.lang.Object
-
- org.optaplanner.core.config.AbstractConfig<LocalSearchForagerConfig>
-
- org.optaplanner.core.config.localsearch.decider.forager.LocalSearchForagerConfig
-
public class LocalSearchForagerConfig extends AbstractConfig<LocalSearchForagerConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
acceptedCountLimit
protected Boolean
breakTieRandomly
protected FinalistPodiumType
finalistPodiumType
protected LocalSearchPickEarlyType
pickEarlyType
-
Constructor Summary
Constructors Constructor Description LocalSearchForagerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalSearchForagerConfig
copyConfig()
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on itInteger
getAcceptedCountLimit()
Boolean
getBreakTieRandomly()
FinalistPodiumType
getFinalistPodiumType()
LocalSearchPickEarlyType
getPickEarlyType()
LocalSearchForagerConfig
inherit(LocalSearchForagerConfig inheritedConfig)
Inherits each property of theinheritedConfig
unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).void
setAcceptedCountLimit(Integer acceptedCountLimit)
void
setBreakTieRandomly(Boolean breakTieRandomly)
void
setFinalistPodiumType(FinalistPodiumType finalistPodiumType)
void
setPickEarlyType(LocalSearchPickEarlyType pickEarlyType)
void
visitReferencedClasses(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).LocalSearchForagerConfig
withAcceptedCountLimit(int acceptedCountLimit)
LocalSearchForagerConfig
withBreakTieRandomly(boolean breakTieRandomly)
LocalSearchForagerConfig
withFinalistPodiumType(FinalistPodiumType finalistPodiumType)
LocalSearchForagerConfig
withPickEarlyType(LocalSearchPickEarlyType pickEarlyType)
-
Methods inherited from class org.optaplanner.core.config.AbstractConfig
toString
-
-
-
-
Field Detail
-
pickEarlyType
protected LocalSearchPickEarlyType pickEarlyType
-
acceptedCountLimit
protected Integer acceptedCountLimit
-
finalistPodiumType
protected FinalistPodiumType finalistPodiumType
-
breakTieRandomly
protected Boolean breakTieRandomly
-
-
Method Detail
-
getPickEarlyType
public LocalSearchPickEarlyType getPickEarlyType()
-
setPickEarlyType
public void setPickEarlyType(LocalSearchPickEarlyType pickEarlyType)
-
getAcceptedCountLimit
public Integer getAcceptedCountLimit()
-
setAcceptedCountLimit
public void setAcceptedCountLimit(Integer acceptedCountLimit)
-
getFinalistPodiumType
public FinalistPodiumType getFinalistPodiumType()
-
setFinalistPodiumType
public void setFinalistPodiumType(FinalistPodiumType finalistPodiumType)
-
getBreakTieRandomly
public Boolean getBreakTieRandomly()
-
setBreakTieRandomly
public void setBreakTieRandomly(Boolean breakTieRandomly)
-
withPickEarlyType
public LocalSearchForagerConfig withPickEarlyType(LocalSearchPickEarlyType pickEarlyType)
-
withAcceptedCountLimit
public LocalSearchForagerConfig withAcceptedCountLimit(int acceptedCountLimit)
-
withFinalistPodiumType
public LocalSearchForagerConfig withFinalistPodiumType(FinalistPodiumType finalistPodiumType)
-
withBreakTieRandomly
public LocalSearchForagerConfig withBreakTieRandomly(boolean breakTieRandomly)
-
inherit
public LocalSearchForagerConfig inherit(LocalSearchForagerConfig inheritedConfig)
Description copied from class:AbstractConfig
Inherits each property of theinheritedConfig
unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this
AbstractConfig
composition is replaced, it should not affect the inherited composition instance.- Specified by:
inherit
in classAbstractConfig<LocalSearchForagerConfig>
- Parameters:
inheritedConfig
- never null- Returns:
- this
-
copyConfig
public LocalSearchForagerConfig copyConfig()
Description copied from class:AbstractConfig
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it- Specified by:
copyConfig
in classAbstractConfig<LocalSearchForagerConfig>
- Returns:
- new instance
-
visitReferencedClasses
public void visitReferencedClasses(Consumer<Class<?>> classVisitor)
Description copied from class:AbstractConfig
Call 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:
visitReferencedClasses
in classAbstractConfig<LocalSearchForagerConfig>
- Parameters:
classVisitor
- The visitor of classes, never null. Can accept null instances of Class
-
-