|
OptaPlanner core 6.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SelectionCacheType>
org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType
public enum SelectionCacheType
There is no INHERIT by design because 2 sequential caches provides no benefit, only memory overhead.
Enum Constant Summary | |
---|---|
JUST_IN_TIME
Just in time, when the move is created. |
|
PHASE
When the phase is started. |
|
SOLVER
When the solver is started. |
|
STEP
When the step is started. |
Method Summary | |
---|---|
boolean |
isCached()
|
boolean |
isNotCached()
|
static SelectionCacheType |
max(SelectionCacheType a,
SelectionCacheType b)
|
static SelectionCacheType |
resolve(SelectionCacheType cacheType,
SelectionCacheType minimumCacheType)
|
static SelectionCacheType |
valueOf(String name)
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SelectionCacheType JUST_IN_TIME
public static final SelectionCacheType STEP
public static final SelectionCacheType PHASE
public static final SelectionCacheType SOLVER
Method Detail |
---|
public static SelectionCacheType[] values()
for (SelectionCacheType c : SelectionCacheType.values()) System.out.println(c);
public static SelectionCacheType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static SelectionCacheType resolve(SelectionCacheType cacheType, SelectionCacheType minimumCacheType)
public boolean isCached()
public boolean isNotCached()
public static SelectionCacheType max(SelectionCacheType a, SelectionCacheType b)
|
OptaPlanner core 6.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |