|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Direction in cmsc433.p3 |
|---|
| Fields in cmsc433.p3 declared as Direction | |
|---|---|
Direction |
SkippingMazeSolver.SolutionFound.from
|
Direction |
Choice.from
The direction we came from to arrive at this choice point. |
| Fields in cmsc433.p3 with type parameters of type Direction | |
|---|---|
java.util.Deque<Direction> |
Choice.choices
The choices available for the next move (available moves minus Choice.from). |
| Methods in cmsc433.p3 that return Direction | |
|---|---|
Direction |
Direction.reverse()
Returns the opposite compass direction. |
static Direction |
Direction.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Direction[] |
Direction.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods in cmsc433.p3 that return types with arguments of type Direction | |
|---|---|
java.util.LinkedList<Direction> |
Maze.getMoves(Position pos)
Returns the list of open directions at this position. |
java.util.List<Direction> |
SkippingMazeSolver.pathToFullPath(java.util.List<Direction> path)
|
java.util.List<Direction> |
STMazeSolverRec.solve()
|
java.util.List<Direction> |
STMazeSolverBFS.solve()
Performs a breadth-first search of the maze. |
java.util.List<Direction> |
STMazeSolverDFS.solve()
Performs a depth-first search for the exit. |
abstract java.util.List<Direction> |
MazeSolver.solve()
Solve the maze and return the solution. |
java.util.LinkedList<Direction> |
STMazeSolverRec.solve(Position p)
|
| Methods in cmsc433.p3 with parameters of type Direction | |
|---|---|
boolean |
Maze.canMove(Position pos,
Direction dir)
Returns true if it is possible to move in direction @dir when at position @pos. |
Choice |
SkippingMazeSolver.follow(Position at,
Direction dir)
Follows a path until a choice point. |
Choice |
SkippingMazeSolver.followMark(Position at,
Direction dir,
int color)
Follows a path until a choice point. |
int |
Maze.getColor(Position pos,
Direction dir)
Gets the color of the edge in direction 'dir' at position 'pos'. |
Position |
Position.move(Direction dir)
Generates a new position that is the result of moving from this position in direction "dir." |
void |
Maze.setColor(Position pos,
Direction dir,
int color)
Sets the color of the edge in direction 'dir' at position 'pos' to the specified value, which must be between 0 and 3 inclusive. |
| Method parameters in cmsc433.p3 with type arguments of type Direction | |
|---|---|
boolean |
Maze.checkSolution(java.util.List<Direction> soln)
Checks that a solution is correct. |
void |
SkippingMazeSolver.markPath(java.util.List<Direction> path,
int color)
Marks a path |
java.util.List<Direction> |
SkippingMazeSolver.pathToFullPath(java.util.List<Direction> path)
|
| Constructors in cmsc433.p3 with parameters of type Direction | |
|---|---|
SkippingMazeSolver.SolutionFound(Position pos,
Direction from)
|
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||