Class ConstructionHeuristicPhaseConfig
- java.lang.Object
-
- org.optaplanner.core.config.AbstractConfig<C>
-
- 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 List<EntityPlacerConfig>
entityPlacerConfigList
protected EntitySorterManner
entitySorterManner
protected ConstructionHeuristicForagerConfig
foragerConfig
protected List<MoveSelectorConfig>
moveSelectorConfigList
Simpler alternative forentityPlacerConfigList
.protected ValueSorterManner
valueSorterManner
-
Constructor Summary
Constructors Constructor Description ConstructionHeuristicPhaseConfig()
-
Method Summary
-
Methods inherited from class org.optaplanner.core.config.phase.PhaseConfig
buildPhaseTermination, getTerminationConfig, setTerminationConfig, toString
-
Methods inherited from class org.optaplanner.core.config.AbstractConfig
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList
-
-
-
-
Field Detail
-
constructionHeuristicType
protected ConstructionHeuristicType constructionHeuristicType
-
entitySorterManner
protected EntitySorterManner entitySorterManner
-
valueSorterManner
protected ValueSorterManner valueSorterManner
-
entityPlacerConfigList
protected List<EntityPlacerConfig> entityPlacerConfigList
-
moveSelectorConfigList
protected List<MoveSelectorConfig> moveSelectorConfigList
Simpler alternative forentityPlacerConfigList
.
-
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)
-
buildPhase
public ConstructionHeuristicPhase buildPhase(int phaseIndex, HeuristicConfigPolicy solverConfigPolicy, BestSolutionRecaller bestSolutionRecaller, Termination solverTermination)
- Specified by:
buildPhase
in classPhaseConfig<ConstructionHeuristicPhaseConfig>
-
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
-
-