public enum AgentSelectionType extends java.lang.Enum<AgentSelectionType>
Enum Constant and Description |
---|
DEFAULT
Uses the default system agent selection policy.
|
LEAST_RECENTLY_SELECTED
Selects the agent who has least recently been selected.
|
MOST_RECENTLY_SELECTED
Selects the agent who has most recently been selected.
|
PRIORITY
Selects the agent by the highest agent priority.
|
RANDOM
Randomly selects an agent.
|
Modifier and Type | Method and Description |
---|---|
static AgentSelectionType |
getDefault()
Get the enum constant that is considered to be the default.
|
static AgentSelectionType |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static AgentSelectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentSelectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentSelectionType DEFAULT
public static final AgentSelectionType PRIORITY
public static final AgentSelectionType LEAST_RECENTLY_SELECTED
public static final AgentSelectionType MOST_RECENTLY_SELECTED
public static final AgentSelectionType RANDOM
public static AgentSelectionType[] values()
for (AgentSelectionType c : AgentSelectionType.values()) System.out.println(c);
public static AgentSelectionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static AgentSelectionType getFromValue(int value)
value
- A numeric value.public static AgentSelectionType getDefault()