public static enum Amas.ExecutionPolicy extends java.lang.Enum<Amas.ExecutionPolicy>
Enum Constant and Description |
---|
ONE_PHASE
Every agent perceives, decides and act.
|
TWO_PHASES
Every agent perceives, then every agent agent decides and acts
|
Modifier and Type | Method and Description |
---|---|
static Amas.ExecutionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Amas.ExecutionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Amas.ExecutionPolicy TWO_PHASES
public static final Amas.ExecutionPolicy ONE_PHASE
public static Amas.ExecutionPolicy[] values()
for (Amas.ExecutionPolicy c : Amas.ExecutionPolicy.values()) System.out.println(c);
public static Amas.ExecutionPolicy 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 null