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 IntegeracceptedCountLimitprotected BooleanbreakTieRandomlyprotected FinalistPodiumTypefinalistPodiumTypeprotected LocalSearchPickEarlyTypepickEarlyType
-
Constructor Summary
Constructors Constructor Description LocalSearchForagerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalSearchForagerConfigcopyConfig()Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on itIntegergetAcceptedCountLimit()BooleangetBreakTieRandomly()FinalistPodiumTypegetFinalistPodiumType()LocalSearchPickEarlyTypegetPickEarlyType()LocalSearchForagerConfiginherit(LocalSearchForagerConfig inheritedConfig)Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidsetAcceptedCountLimit(Integer acceptedCountLimit)voidsetBreakTieRandomly(Boolean breakTieRandomly)voidsetFinalistPodiumType(FinalistPodiumType finalistPodiumType)voidsetPickEarlyType(LocalSearchPickEarlyType pickEarlyType)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).LocalSearchForagerConfigwithAcceptedCountLimit(int acceptedCountLimit)LocalSearchForagerConfigwithBreakTieRandomly(boolean breakTieRandomly)LocalSearchForagerConfigwithFinalistPodiumType(FinalistPodiumType finalistPodiumType)LocalSearchForagerConfigwithPickEarlyType(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: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>- Parameters:
inheritedConfig- never null- Returns:
- this
-
copyConfig
public LocalSearchForagerConfig 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
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<LocalSearchForagerConfig>- Parameters:
classVisitor- The visitor of classes, never null. Can accept null instances of Class
-
-