|
Drools Planner distribution 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SelectionOrder>
org.drools.planner.config.heuristic.selector.common.SelectionOrder
public enum SelectionOrder
Defines in which order the elements or a selector are selected.
Enum Constant Summary | |
---|---|
INHERIT
Inherit the value from the parent . |
|
ORIGINAL
Select the elements in original order. |
|
PROBABILISTIC
Select in random order, based on the selection probability of each element. |
|
RANDOM
Select in random order, without shuffling the elements. |
|
SHUFFLED
Select in random order by shuffling the elements when a selection iterator is created. |
|
SORTED
Select in sorted order by sorting the elements. |
Method Summary | |
---|---|
static SelectionOrder |
fromRandomSelectionBoolean(boolean randomSelection)
|
static SelectionOrder |
resolve(SelectionOrder selectionOrder,
SelectionOrder inheritedSelectionOrder)
|
boolean |
toRandomSelectionBoolean()
|
static SelectionOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SelectionOrder[] |
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 SelectionOrder INHERIT
ORIGINAL
.
This is the default. If there is no such parent, then it defaults to RANDOM
.
public static final SelectionOrder ORIGINAL
public static final SelectionOrder SORTED
SelectionCacheType.STEP
or higher.
public static final SelectionOrder RANDOM
public static final SelectionOrder SHUFFLED
SelectionCacheType.STEP
or higher.
public static final SelectionOrder PROBABILISTIC
SelectionCacheType.STEP
or higher.
Method Detail |
---|
public static SelectionOrder[] values()
for (SelectionOrder c : SelectionOrder.values()) System.out.println(c);
public static SelectionOrder 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 SelectionOrder resolve(SelectionOrder selectionOrder, SelectionOrder inheritedSelectionOrder)
selectionOrder
- sometimes nullinheritedSelectionOrder
- never null
public static SelectionOrder fromRandomSelectionBoolean(boolean randomSelection)
public boolean toRandomSelectionBoolean()
|
Drools Planner distribution 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |