org.optaplanner.core.config.heuristic.selector.value
public class ValueSelectorConfig extends SelectorConfig
Modifier and Type | Class and Description |
---|---|
static class |
ValueSelectorConfig.ValueSorterManner
Build-in ways of sorting.
|
Modifier and Type | Field and Description |
---|---|
protected SelectionCacheType |
cacheType |
protected Class<? extends SelectionProbabilityWeightFactory> |
probabilityWeightFactoryClass |
protected SelectionOrder |
selectionOrder |
protected Class<? extends SelectionSorter> |
sorterClass |
protected Class<? extends Comparator> |
sorterComparatorClass |
protected ValueSelectorConfig.ValueSorterManner |
sorterManner |
protected SelectionSorterOrder |
sorterOrder |
protected Class<? extends SelectionSorterWeightFactory> |
sorterWeightFactoryClass |
protected String |
variableName |
Constructor and Description |
---|
ValueSelectorConfig() |
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptors, inherit, validateCacheTypeVersusSelectionOrder
protected String variableName
protected SelectionCacheType cacheType
protected SelectionOrder selectionOrder
protected ValueSelectorConfig.ValueSorterManner sorterManner
protected Class<? extends Comparator> sorterComparatorClass
protected Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass
protected SelectionSorterOrder sorterOrder
protected Class<? extends SelectionSorter> sorterClass
protected Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass
public String getVariableName()
public void setVariableName(String variableName)
public SelectionCacheType getCacheType()
public void setCacheType(SelectionCacheType cacheType)
public SelectionOrder getSelectionOrder()
public void setSelectionOrder(SelectionOrder selectionOrder)
public ValueSelectorConfig.ValueSorterManner getSorterManner()
public void setSorterManner(ValueSelectorConfig.ValueSorterManner sorterManner)
public Class<? extends Comparator> getSorterComparatorClass()
public void setSorterComparatorClass(Class<? extends Comparator> sorterComparatorClass)
public Class<? extends SelectionSorterWeightFactory> getSorterWeightFactoryClass()
public void setSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory> sorterWeightFactoryClass)
public SelectionSorterOrder getSorterOrder()
public void setSorterOrder(SelectionSorterOrder sorterOrder)
public Class<? extends SelectionSorter> getSorterClass()
public void setSorterClass(Class<? extends SelectionSorter> sorterClass)
public Class<? extends SelectionProbabilityWeightFactory> getProbabilityWeightFactoryClass()
public void setProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory> probabilityWeightFactoryClass)
public ValueSelector buildValueSelector(HeuristicConfigPolicy configPolicy, PlanningEntityDescriptor entityDescriptor, SelectionCacheType minimumCacheType, SelectionOrder inheritedSelectionOrder)
configPolicy
- never nullentityDescriptor
- never nullminimumCacheType
- never null, If caching is used (different from SelectionCacheType.JUST_IN_TIME
),
then it should be at least this SelectionCacheType
because an ancestor already uses such caching
and less would be pointless.inheritedSelectionOrder
- never nullprotected boolean determineBaseRandomSelection(PlanningVariableDescriptor variableDescriptor, SelectionCacheType resolvedCacheType, SelectionOrder resolvedSelectionOrder)
protected boolean isBaseInherentlyCached(PlanningVariableDescriptor variableDescriptor)
protected ValueSelector applyInitializedChainedValueFilter(HeuristicConfigPolicy configPolicy, PlanningVariableDescriptor variableDescriptor, SelectionCacheType resolvedCacheType, SelectionOrder resolvedSelectionOrder, ValueSelector valueSelector)
public void inherit(ValueSelectorConfig inheritedConfig)
public String toString()
toString
in class SelectorConfig
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.