Enum SelectionCacheType
java.lang.Object
java.lang.Enum<SelectionCacheType>
org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType
- All Implemented Interfaces:
Serializable
,Comparable<SelectionCacheType>
There is no INHERIT by design because 2 sequential caches provides no benefit, only memory overhead.
-
Enum Constant Summary
Enum ConstantDescriptionJust in time, when the move is created.When the phase is started.When the solver is started.When the step is started. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isCached()
boolean
static SelectionCacheType
static SelectionCacheType
resolve
(SelectionCacheType cacheType, SelectionCacheType minimumCacheType) static SelectionCacheType
Returns the enum constant of this type with the specified name.static SelectionCacheType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JUST_IN_TIME
Just in time, when the move is created. This is effectively no caching. This is the default for most selectors. -
STEP
When the step is started. -
PHASE
When the phase is started. -
SOLVER
When the solver is started.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
public static SelectionCacheType resolve(SelectionCacheType cacheType, SelectionCacheType minimumCacheType) -
isCached
public boolean isCached() -
isNotCached
public boolean isNotCached() -
max
-