public class MoveListFactoryConfig extends MoveSelectorConfig<MoveListFactoryConfig>
Modifier and Type | Field and Description |
---|---|
protected Class<? extends MoveListFactory> |
moveListFactoryClass |
protected Map<String,String> |
moveListFactoryCustomProperties |
cacheType, filterClassList, probabilityWeightFactoryClass, selectedCountLimit, selectionOrder, sorterClass, sorterComparatorClass, sorterOrder, sorterWeightFactoryClass
Constructor and Description |
---|
MoveListFactoryConfig() |
Modifier and Type | Method and Description |
---|---|
MoveSelector |
buildBaseMoveSelector(HeuristicConfigPolicy configPolicy,
SelectionCacheType minimumCacheType,
boolean randomSelection) |
MoveListFactoryConfig |
copyConfig()
Typically implemented by constructing a new instance and calling
AbstractConfig.inherit(AbstractConfig) on it |
Class<? extends MoveListFactory> |
getMoveListFactoryClass() |
Map<String,String> |
getMoveListFactoryCustomProperties() |
MoveListFactoryConfig |
inherit(MoveListFactoryConfig inheritedConfig)
Inherits each property of the
inheritedConfig unless that property (or a semantic alternative)
is defined by this instance (which overwrites the inherited behaviour). |
protected boolean |
isBaseInherentlyCached() |
void |
setMoveListFactoryClass(Class<? extends MoveListFactory> moveListFactoryClass) |
void |
setMoveListFactoryCustomProperties(Map<String,String> moveListFactoryCustomProperties) |
String |
toString() |
buildMoveSelector, buildUnfoldedMoveSelectorConfig, determineBaseRandomSelection, extractLeafMoveSelectorConfigsIntoList, getCacheType, getFilterClassList, getFixedProbabilityWeight, getProbabilityWeightFactoryClass, getSelectedCountLimit, getSelectionOrder, getSorterClass, getSorterComparatorClass, getSorterOrder, getSorterWeightFactoryClass, inheritFolded, setCacheType, setFilterClassList, setFixedProbabilityWeight, setProbabilityWeightFactoryClass, setSelectedCountLimit, setSelectionOrder, setSorterClass, setSorterComparatorClass, setSorterOrder, setSorterWeightFactoryClass, withCacheType, withFilterClassList, withFixedProbabilityWeight, withProbabilityWeightFactoryClass, withSelectedCountLimit, withSelectionOrder, withSorterClass, withSorterComparatorClass, withSorterOrder, withSorterWeightFactoryClass
validateCacheTypeVersusSelectionOrder
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList
protected Class<? extends MoveListFactory> moveListFactoryClass
@XStreamConverter(value=KeyAsElementMapConverter.class) protected Map<String,String> moveListFactoryCustomProperties
public Class<? extends MoveListFactory> getMoveListFactoryClass()
public void setMoveListFactoryClass(Class<? extends MoveListFactory> moveListFactoryClass)
public void setMoveListFactoryCustomProperties(Map<String,String> moveListFactoryCustomProperties)
protected boolean isBaseInherentlyCached()
isBaseInherentlyCached
in class MoveSelectorConfig<MoveListFactoryConfig>
public MoveSelector buildBaseMoveSelector(HeuristicConfigPolicy configPolicy, SelectionCacheType minimumCacheType, boolean randomSelection)
buildBaseMoveSelector
in class MoveSelectorConfig<MoveListFactoryConfig>
configPolicy
- 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.randomSelection
- true is equivalent to SelectionOrder.RANDOM
,
false is equivalent to SelectionOrder.ORIGINAL
public MoveListFactoryConfig inherit(MoveListFactoryConfig 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 MoveSelectorConfig<MoveListFactoryConfig>
inheritedConfig
- never nullpublic MoveListFactoryConfig copyConfig()
AbstractConfig
AbstractConfig.inherit(AbstractConfig)
on itcopyConfig
in class AbstractConfig<MoveListFactoryConfig>
public String toString()
toString
in class AbstractConfig<MoveListFactoryConfig>
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.