Enum Room.Result

java.lang.Object
  extended by java.lang.Enum<Room.Result>
      extended by Room.Result
All Implemented Interfaces:
Serializable, Comparable<Room.Result>
Enclosing class:
Room

public static enum Room.Result
extends Enum<Room.Result>

An enumeration of the various possible outcomes of a Vroomba cleaning a room.


Enum Constant Summary
DROP
          Vroomba fell over a DROP
INOPERATIVE
          Room has more than one floor space, but Vroomba never moved at all
POWER_OFF_CLEAN
          Vroomba turned off because room was clean
POWER_OFF_DIRTY
          Vroomba turned off, but room was not yet clean
REPEATED_CRASH
          Vroomba repeated the same collision 3 times in a row
TIME_OUT_CLEAN
          Vroomba exceeded max number of moves allowed, but room is clean
TIME_OUT_DIRTY
          Vroomba exceeded max number of moves allowed and room still dirty
 
Method Summary
static Room.Result valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Room.Result[] 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

INOPERATIVE

public static final Room.Result INOPERATIVE
Room has more than one floor space, but Vroomba never moved at all


REPEATED_CRASH

public static final Room.Result REPEATED_CRASH
Vroomba repeated the same collision 3 times in a row


DROP

public static final Room.Result DROP
Vroomba fell over a DROP


POWER_OFF_DIRTY

public static final Room.Result POWER_OFF_DIRTY
Vroomba turned off, but room was not yet clean


TIME_OUT_DIRTY

public static final Room.Result TIME_OUT_DIRTY
Vroomba exceeded max number of moves allowed and room still dirty


TIME_OUT_CLEAN

public static final Room.Result TIME_OUT_CLEAN
Vroomba exceeded max number of moves allowed, but room is clean


POWER_OFF_CLEAN

public static final Room.Result POWER_OFF_CLEAN
Vroomba turned off because room was clean

Method Detail

values

public static final Room.Result[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Room.Result c : Room.Result.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Room.Result valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name