public class CustomPhaseConfig extends PhaseConfig<CustomPhaseConfig>
Modifier and Type | Field and Description |
---|---|
protected List<Class<? extends CustomPhaseCommand>> |
customPhaseCommandClassList |
protected List<CustomPhaseCommand<?>> |
customPhaseCommandList |
protected Map<String,String> |
customProperties |
protected Boolean |
forceUpdateBestSolution
Deprecated.
Use
Solver.addProblemFactChange(ProblemFactChange) instead. |
Constructor and Description |
---|
CustomPhaseConfig() |
buildPhaseTermination, getTerminationConfig, setTerminationConfig, toString
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList
protected List<Class<? extends CustomPhaseCommand>> customPhaseCommandClassList
@XStreamConverter(value=KeyAsElementMapConverter.class) protected Map<String,String> customProperties
protected List<CustomPhaseCommand<?>> customPhaseCommandList
@Deprecated protected Boolean forceUpdateBestSolution
Solver.addProblemFactChange(ProblemFactChange)
instead.public List<Class<? extends CustomPhaseCommand>> getCustomPhaseCommandClassList()
public void setCustomPhaseCommandClassList(List<Class<? extends CustomPhaseCommand>> customPhaseCommandClassList)
public List<CustomPhaseCommand<?>> getCustomPhaseCommandList()
public void setCustomPhaseCommandList(List<CustomPhaseCommand<?>> customPhaseCommandList)
@Deprecated public Boolean getForceUpdateBestSolution()
@Deprecated public void setForceUpdateBestSolution(Boolean forceUpdateBestSolution)
public CustomPhaseConfig withCustomPhaseCommandClassList(List<Class<? extends CustomPhaseCommand>> customPhaseCommandClassList)
public CustomPhaseConfig withCustomPhaseCommandList(List<CustomPhaseCommand<?>> customPhaseCommandList)
public CustomPhaseConfig withCustomPhaseCommands(CustomPhaseCommand<?>... customPhaseCommands)
public CustomPhase buildPhase(int phaseIndex, HeuristicConfigPolicy solverConfigPolicy, BestSolutionRecaller bestSolutionRecaller, Termination solverTermination)
buildPhase
in class PhaseConfig<CustomPhaseConfig>
public CustomPhaseConfig inherit(CustomPhaseConfig inheritedConfig)
AbstractConfig
inheritedConfig
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.
inherit
in class PhaseConfig<CustomPhaseConfig>
inheritedConfig
- never nullpublic CustomPhaseConfig copyConfig()
AbstractConfig
AbstractConfig.inherit(AbstractConfig)
on itcopyConfig
in class AbstractConfig<CustomPhaseConfig>
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.