Class ConstructionHeuristicPhaseConfig
- java.lang.Object
-
- org.optaplanner.core.config.AbstractConfig<Config_>
-
- org.optaplanner.core.config.phase.PhaseConfig<ConstructionHeuristicPhaseConfig>
-
- org.optaplanner.core.config.constructionheuristic.ConstructionHeuristicPhaseConfig
-
public class ConstructionHeuristicPhaseConfig extends PhaseConfig<ConstructionHeuristicPhaseConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected ConstructionHeuristicType
constructionHeuristicType
protected EntityPlacerConfig
entityPlacerConfig
protected EntitySorterManner
entitySorterManner
protected ConstructionHeuristicForagerConfig
foragerConfig
protected List<MoveSelectorConfig>
moveSelectorConfigList
Simpler alternative forentityPlacerConfig
.protected ValueSorterManner
valueSorterManner
static String
XML_ELEMENT_NAME
-
Constructor Summary
Constructors Constructor Description ConstructionHeuristicPhaseConfig()
-
Method Summary
-
Methods inherited from class org.optaplanner.core.config.phase.PhaseConfig
getTerminationConfig, setTerminationConfig, toString
-
-
-
-
Field Detail
-
XML_ELEMENT_NAME
public static final String XML_ELEMENT_NAME
- See Also:
- Constant Field Values
-
constructionHeuristicType
protected ConstructionHeuristicType constructionHeuristicType
-
entitySorterManner
protected EntitySorterManner entitySorterManner
-
valueSorterManner
protected ValueSorterManner valueSorterManner
-
entityPlacerConfig
protected EntityPlacerConfig entityPlacerConfig
-
moveSelectorConfigList
protected List<MoveSelectorConfig> moveSelectorConfigList
Simpler alternative forentityPlacerConfig
.
-
foragerConfig
protected ConstructionHeuristicForagerConfig foragerConfig
-
-
Method Detail
-
getConstructionHeuristicType
public ConstructionHeuristicType getConstructionHeuristicType()
-
setConstructionHeuristicType
public void setConstructionHeuristicType(ConstructionHeuristicType constructionHeuristicType)
-
getEntitySorterManner
public EntitySorterManner getEntitySorterManner()
-
setEntitySorterManner
public void setEntitySorterManner(EntitySorterManner entitySorterManner)
-
getValueSorterManner
public ValueSorterManner getValueSorterManner()
-
setValueSorterManner
public void setValueSorterManner(ValueSorterManner valueSorterManner)
-
getEntityPlacerConfig
public EntityPlacerConfig getEntityPlacerConfig()
-
setEntityPlacerConfig
public void setEntityPlacerConfig(EntityPlacerConfig entityPlacerConfig)
-
getMoveSelectorConfigList
public List<MoveSelectorConfig> getMoveSelectorConfigList()
-
setMoveSelectorConfigList
public void setMoveSelectorConfigList(List<MoveSelectorConfig> moveSelectorConfigList)
-
getForagerConfig
public ConstructionHeuristicForagerConfig getForagerConfig()
-
setForagerConfig
public void setForagerConfig(ConstructionHeuristicForagerConfig foragerConfig)
-
withConstructionHeuristicType
public ConstructionHeuristicPhaseConfig withConstructionHeuristicType(ConstructionHeuristicType constructionHeuristicType)
-
withEntitySorterManner
public ConstructionHeuristicPhaseConfig withEntitySorterManner(EntitySorterManner entitySorterManner)
-
withValueSorterManner
public ConstructionHeuristicPhaseConfig withValueSorterManner(ValueSorterManner valueSorterManner)
-
withEntityPlacerConfig
public ConstructionHeuristicPhaseConfig withEntityPlacerConfig(EntityPlacerConfig<?> entityPlacerConfig)
-
withMoveSelectorConfigList
public ConstructionHeuristicPhaseConfig withMoveSelectorConfigList(List<MoveSelectorConfig> moveSelectorConfigList)
-
withForagerConfig
public ConstructionHeuristicPhaseConfig withForagerConfig(ConstructionHeuristicForagerConfig foragerConfig)
-
inherit
public ConstructionHeuristicPhaseConfig inherit(ConstructionHeuristicPhaseConfig 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.- Overrides:
inherit
in classPhaseConfig<ConstructionHeuristicPhaseConfig>
- Parameters:
inheritedConfig
- never null- Returns:
- this
-
copyConfig
public ConstructionHeuristicPhaseConfig copyConfig()
Description copied from class:AbstractConfig
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it- Specified by:
copyConfig
in classAbstractConfig<ConstructionHeuristicPhaseConfig>
- 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<ConstructionHeuristicPhaseConfig>
- Parameters:
classVisitor
- The visitor of classes, never null. Can accept null instances of Class
-
-