|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RobotSuccessPercept.ReasonForFailure>
edu.columbia.cs.coms4701.agent.environments.robot.RobotSuccessPercept.ReasonForFailure
public static enum RobotSuccessPercept.ReasonForFailure
Indicates the reason for the failure of an attempted move.
Enum Constant Summary | |
---|---|
HitObstacle
The robot hit an obstacle in the grid. |
|
HitWall
The robot hit a wall on the edge of the grid. |
|
IllegalAction
The robot attempted to perform a non-permitted action, such as moving by more than 1 square in any direction. |
Method Summary | |
---|---|
static RobotSuccessPercept.ReasonForFailure |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RobotSuccessPercept.ReasonForFailure[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RobotSuccessPercept.ReasonForFailure HitObstacle
public static final RobotSuccessPercept.ReasonForFailure HitWall
public static final RobotSuccessPercept.ReasonForFailure IllegalAction
Method Detail |
---|
public static final RobotSuccessPercept.ReasonForFailure[] values()
for(RobotSuccessPercept.ReasonForFailure c : RobotSuccessPercept.ReasonForFailure.values()) System.out.println(c);
public static RobotSuccessPercept.ReasonForFailure 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 name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |