Class NearbySelectionConfig
- java.lang.Object
-
- org.optaplanner.core.config.AbstractConfig<Config_>
-
- org.optaplanner.core.config.heuristic.selector.SelectorConfig<NearbySelectionConfig>
-
- org.optaplanner.core.config.heuristic.selector.common.nearby.NearbySelectionConfig
-
public class NearbySelectionConfig extends SelectorConfig<NearbySelectionConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected Double
betaDistributionAlpha
protected Double
betaDistributionBeta
protected Integer
blockDistributionSizeMaximum
protected Integer
blockDistributionSizeMinimum
protected Double
blockDistributionSizeRatio
protected Double
blockDistributionUniformDistributionProbability
protected Integer
linearDistributionSizeMaximum
protected Class<? extends NearbyDistanceMeter>
nearbyDistanceMeterClass
protected NearbySelectionDistributionType
nearbySelectionDistributionType
protected EntitySelectorConfig
originEntitySelectorConfig
protected Integer
parabolicDistributionSizeMaximum
-
Constructor Summary
Constructors Constructor Description NearbySelectionConfig()
-
Method Summary
-
Methods inherited from class org.optaplanner.core.config.AbstractConfig
toString
-
-
-
-
Field Detail
-
originEntitySelectorConfig
protected EntitySelectorConfig originEntitySelectorConfig
-
nearbyDistanceMeterClass
protected Class<? extends NearbyDistanceMeter> nearbyDistanceMeterClass
-
nearbySelectionDistributionType
protected NearbySelectionDistributionType nearbySelectionDistributionType
-
blockDistributionSizeMinimum
protected Integer blockDistributionSizeMinimum
-
blockDistributionSizeMaximum
protected Integer blockDistributionSizeMaximum
-
blockDistributionSizeRatio
protected Double blockDistributionSizeRatio
-
blockDistributionUniformDistributionProbability
protected Double blockDistributionUniformDistributionProbability
-
linearDistributionSizeMaximum
protected Integer linearDistributionSizeMaximum
-
parabolicDistributionSizeMaximum
protected Integer parabolicDistributionSizeMaximum
-
betaDistributionAlpha
protected Double betaDistributionAlpha
-
betaDistributionBeta
protected Double betaDistributionBeta
-
-
Method Detail
-
getOriginEntitySelectorConfig
public EntitySelectorConfig getOriginEntitySelectorConfig()
-
setOriginEntitySelectorConfig
public void setOriginEntitySelectorConfig(EntitySelectorConfig originEntitySelectorConfig)
-
getNearbyDistanceMeterClass
public Class<? extends NearbyDistanceMeter> getNearbyDistanceMeterClass()
-
setNearbyDistanceMeterClass
public void setNearbyDistanceMeterClass(Class<? extends NearbyDistanceMeter> nearbyDistanceMeterClass)
-
getNearbySelectionDistributionType
public NearbySelectionDistributionType getNearbySelectionDistributionType()
-
setNearbySelectionDistributionType
public void setNearbySelectionDistributionType(NearbySelectionDistributionType nearbySelectionDistributionType)
-
getBlockDistributionSizeMinimum
public Integer getBlockDistributionSizeMinimum()
-
setBlockDistributionSizeMinimum
public void setBlockDistributionSizeMinimum(Integer blockDistributionSizeMinimum)
-
getBlockDistributionSizeMaximum
public Integer getBlockDistributionSizeMaximum()
-
setBlockDistributionSizeMaximum
public void setBlockDistributionSizeMaximum(Integer blockDistributionSizeMaximum)
-
getBlockDistributionSizeRatio
public Double getBlockDistributionSizeRatio()
-
setBlockDistributionSizeRatio
public void setBlockDistributionSizeRatio(Double blockDistributionSizeRatio)
-
getBlockDistributionUniformDistributionProbability
public Double getBlockDistributionUniformDistributionProbability()
-
setBlockDistributionUniformDistributionProbability
public void setBlockDistributionUniformDistributionProbability(Double blockDistributionUniformDistributionProbability)
-
getLinearDistributionSizeMaximum
public Integer getLinearDistributionSizeMaximum()
-
setLinearDistributionSizeMaximum
public void setLinearDistributionSizeMaximum(Integer linearDistributionSizeMaximum)
-
getParabolicDistributionSizeMaximum
public Integer getParabolicDistributionSizeMaximum()
-
setParabolicDistributionSizeMaximum
public void setParabolicDistributionSizeMaximum(Integer parabolicDistributionSizeMaximum)
-
getBetaDistributionAlpha
public Double getBetaDistributionAlpha()
-
setBetaDistributionAlpha
public void setBetaDistributionAlpha(Double betaDistributionAlpha)
-
getBetaDistributionBeta
public Double getBetaDistributionBeta()
-
setBetaDistributionBeta
public void setBetaDistributionBeta(Double betaDistributionBeta)
-
validateNearby
public void validateNearby(SelectionCacheType resolvedCacheType, SelectionOrder resolvedSelectionOrder)
-
inherit
public NearbySelectionConfig inherit(NearbySelectionConfig 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<NearbySelectionConfig>
- Parameters:
inheritedConfig
- never null- Returns:
- this
-
copyConfig
public NearbySelectionConfig copyConfig()
Description copied from class:AbstractConfig
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it- Specified by:
copyConfig
in classAbstractConfig<NearbySelectionConfig>
- 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<NearbySelectionConfig>
- Parameters:
classVisitor
- The visitor of classes, never null. Can accept null instances of Class
-
-