public class CustomPhaseConfig extends PhaseConfig<CustomPhaseConfig>
Modifier and Type | Field and Description |
---|---|
protected List<Class<? extends CustomPhaseCommand>> |
customPhaseCommandClassList |
protected Map<String,String> |
customProperties |
protected Boolean |
forceUpdateBestSolution |
Constructor and Description |
---|
CustomPhaseConfig() |
Modifier and Type | Method and Description |
---|---|
CustomPhase |
buildPhase(int phaseIndex,
HeuristicConfigPolicy solverConfigPolicy,
BestSolutionRecaller bestSolutionRecaller,
Termination solverTermination) |
List<Class<? extends CustomPhaseCommand>> |
getCustomPhaseCommandClassList() |
Map<String,String> |
getCustomProperties() |
Boolean |
getForceUpdateBestSolution() |
void |
inherit(CustomPhaseConfig inheritedConfig)
Inherits each property of the
inheritedConfig unless that property (or a semantic alternative)
is defined by this instance (which overwrites the inherited behaviour). |
void |
setCustomPhaseCommandClassList(List<Class<? extends CustomPhaseCommand>> customPhaseCommandClassList) |
void |
setCustomProperties(Map<String,String> customProperties) |
void |
setForceUpdateBestSolution(Boolean forceUpdateBestSolution) |
buildPhaseTermination, getTerminationConfig, setTerminationConfig, toString
copyConfig, deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList, newInstance
protected List<Class<? extends CustomPhaseCommand>> customPhaseCommandClassList
@XStreamConverter(value=KeyAsElementMapConverter.class) protected Map<String,String> customProperties
protected Boolean forceUpdateBestSolution
public List<Class<? extends CustomPhaseCommand>> getCustomPhaseCommandClassList()
public void setCustomPhaseCommandClassList(List<Class<? extends CustomPhaseCommand>> customPhaseCommandClassList)
public Boolean getForceUpdateBestSolution()
public void setForceUpdateBestSolution(Boolean forceUpdateBestSolution)
public CustomPhase buildPhase(int phaseIndex, HeuristicConfigPolicy solverConfigPolicy, BestSolutionRecaller bestSolutionRecaller, Termination solverTermination)
buildPhase
in class PhaseConfig<CustomPhaseConfig>
public void 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 nullCopyright © 2006–2018 JBoss by Red Hat. All rights reserved.