public enum GoalStatus extends java.lang.Enum<GoalStatus>
Intention.| Enum Constant and Description |
|---|
ACHIEVED |
NO_LONGER_DESIRED |
PLAN_FAILED |
TRYING_TO_ACHIEVE |
UNACHIEVABLE |
WAITING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinished()
Indicates whether this status corresponds to a status in which the goal
has finished, that is, the agent does not have the goal anymore.
|
static GoalStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GoalStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoalStatus ACHIEVED
public static final GoalStatus NO_LONGER_DESIRED
public static final GoalStatus PLAN_FAILED
public static final GoalStatus TRYING_TO_ACHIEVE
public static final GoalStatus UNACHIEVABLE
public static final GoalStatus WAITING
public static GoalStatus[] values()
for (GoalStatus c : GoalStatus.values()) System.out.println(c);
public static GoalStatus 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 boolean isFinished()