|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcmsc433.p3.MazeSolver
cmsc433.p3.SkippingMazeSolver
public abstract class SkippingMazeSolver
Superclass of solvers that only branch at choice points.
| Nested Class Summary | |
|---|---|
class |
SkippingMazeSolver.SolutionFound
|
| Constructor Summary | |
|---|---|
SkippingMazeSolver(Maze maze)
|
|
| Method Summary | |
|---|---|
Choice |
firstChoice(Position pos)
Returns the first choice point reached from the given position. |
Choice |
follow(Position at,
Direction dir)
Follows a path until a choice point. |
Choice |
followMark(Position at,
Direction dir,
int color)
Follows a path until a choice point. |
void |
markPath(java.util.List<Direction> path,
int color)
Marks a path |
java.util.List<Direction> |
pathToFullPath(java.util.List<Direction> path)
|
| Methods inherited from class cmsc433.p3.MazeSolver |
|---|
solve |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkippingMazeSolver(Maze maze)
| Method Detail |
|---|
public Choice firstChoice(Position pos)
throws SkippingMazeSolver.SolutionFound
SkippingMazeSolver.SolutionFound
public Choice follow(Position at,
Direction dir)
throws SkippingMazeSolver.SolutionFound
at - The position to start from.dir - The direction to proceed in.
SkippingMazeSolver.SolutionFound
public Choice followMark(Position at,
Direction dir,
int color)
throws SkippingMazeSolver.SolutionFound
at - The position to start from.dir - The direction to proceed in.color - The color to mark with.
SkippingMazeSolver.SolutionFound
public void markPath(java.util.List<Direction> path,
int color)
path - color -
SkippingMazeSolver.SolutionFoundpublic java.util.List<Direction> pathToFullPath(java.util.List<Direction> path)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||