A C D F G I L M R S T U V W

A

actionPerformed(ActionEvent) - Method in class VroombaRunner
Invoked whenever a component is selected that has this registered as its ActionListener.

C

clean() - Method in class Room
Has this room cleaned by its occupying Vroomba.
clean() - Method in class VroombaRunner
Runs the cleaning animation for this Room.
count(char) - Method in class Room
Counts the number of times the given char is found in the current room map.

D

Direction - Enum in <Unnamed>
One of 9 possible directions an object can move on a 2D board of squares.
DIRT - Static variable in class Room
 
DROP - Static variable in class Room
 

F

FLOOR - Static variable in class Room
 

G

getCollision() - Method in class Room
Returns the number of collisions this Room's Vroomba has had so far.
getColModifier() - Method in enum Direction
Returns the X/column change on the screen that is associated with this direction: -1 for W, 0 for N/S, and +1 for E.
getFeature(int, int) - Method in class Room
Returns the room feature at the given location in this room.
getFeature(Direction) - Method in class Room
Returns the room feature currently in the given direction from this Room's Vroomba.
getMaxMoves() - Method in class Room
Returns the maximum number of moves a Vroomba is allowed for this Room.
getMoves() - Method in class Room
Returns the number of moves this Room's Vroomba has currently made.
getResult() - Method in class Room
Returns the result of cleaning this room.
getRowModifier() - Method in enum Direction
Returns the Y/row change on the screen that is associated with this direction: -1 for N, 0 for E/W, and +1 for south.
getStatus() - Method in class Room
Returns the current status of this Room's Vroomba's cleaning performance as a single line of text.
getStatus(boolean) - Method in class Room
Returns the current status, formatted as per Room.getStatus().
getXModifier() - Method in enum Direction
As Direction.getColModifier()
getYModifier() - Method in enum Direction
As Direction.getRowModifier()

I

isClean() - Method in class Room
Returns whether this room currently contains any DIRT.

L

loadNewRoom() - Method in class VroombaRunner
Loads a new Room from a user-selected file into the leftPane of the window.

M

main(String[]) - Static method in class VroombaRunner
Determines whether to run in text or GUI mode.
MAX_MOVES_MODIFIER - Static variable in class Room
A Vroomba must finish cleaning any room within (MAX_MOVES_MODIFIER * this.floorSpaces) moves.
move(char[]) - Method in class RandomVroomba
 
move(char[]) - Method in class Vroomba
Provides this Vroomba its current surroundings and asks it to choose a direction to move.
moveVroomba() - Method in class Room
Instructs this room's Vroomba to take a turn of cleaning.

R

RandomVroomba - Class in <Unnamed>
This Vroomba doesn't even look at its surroundings; it just moves in a random direction each turn, even if this will result in a collision or drop.
RandomVroomba() - Constructor for class RandomVroomba
 
refreshRoom() - Method in class VroombaRunner
Refreshes the GUI by clearing the output panel and reloading the last file loaded.
reset() - Method in class Vroomba
Instructs this Vroomba to reset itself, such as when it is being transferred to a new room.
reverse() - Method in enum Direction
Returns the direction that is the opposite of this one.
Room - Class in <Unnamed>
Provides a virtual room for a Vroomba to clean.
Room(char[][], Vroomba) - Constructor for class Room
Construct a new Room with the given map, to be cleaned by the given Vroomba.
Room(String, Vroomba) - Constructor for class Room
Constructs a room by loading the given file and using the given Vroomba.
Room.GUI - Class in <Unnamed>
Provides a graphical view of a Room and its cleaning process.
Room.GUI() - Constructor for class Room.GUI
 
Room.Result - Enum in <Unnamed>
An enumeration of the various possible outcomes of a Vroomba cleaning a room.

S

stateChanged(ChangeEvent) - Method in class VroombaRunner
Listens for changes in the GUI.

T

toString() - Method in class Room
Returns a snapshot of this Room's current map as a string.

U

update() - Method in class Room.GUI
Updates this GUI view to represent the state of the underlying Room.

V

valueOf(String) - Static method in enum Direction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Room.Result
Returns the enum constant of this type with the specified name.
values() - Static method in enum Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum Room.Result
Returns an array containing the constants of this enum type, in the order they are declared.
VROOMBA - Static variable in class Room
 
Vroomba - Class in <Unnamed>
A Vroomba models a virtual robotic vacuum cleaner.
Vroomba() - Constructor for class Vroomba
 
VroombaRunner - Class in <Unnamed>
Tests Vroomba objects.
VroombaRunner() - Constructor for class VroombaRunner
Builds a GUI window with two panes: a Room on the left and controls/output on the right.

W

WALL - Static variable in class Room
 

A C D F G I L M R S T U V W