JavaScript is disabled on your browser.
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
A
D
E
G
H
M
P
R
S
T
A
addBarrier(char, Pos, int)
- Method in class
ShortestPathOracle
Notify ShortestPathOracle of a barrier.
D
Dir
- Class in
<Unnamed>
This class represents a compass direction, i.e.
Dir(char)
- Constructor for class
Dir
Construct a Dir object.
distance(Pos)
- Method in class
Pos
Returns the "manhatttan distance" between "this" position and p.
E
equals(Pos)
- Method in class
Pos
Tests for equality of row/col coordinates between two positions.
equals(Object)
- Method in class
Pos
Tests for equaltiy of a Pos with an arbitraty object.
G
getCol()
- Method in class
Pos
returns the column for this position.
getFirstMoveOnShortestPath(Pos, Dir, Pos)
- Method in class
ShortestPathOracle
Returns the first "move" on a shortest path.
getLengthOfShortestPath(Pos, Pos)
- Method in class
ShortestPathOracle
Returns the length of the shortest path from position curr to position target.
getMoveTowards(Pos, Pos)
- Method in class
Dir
Returns a "move" (i.e.
getRow()
- Method in class
Pos
returns the row for this position.
getShortestPath(Pos, Pos)
- Method in class
ShortestPathOracle
Returns a shortest path from position curr to position target.
H
hashCode()
- Method in class
Pos
Returns a hashcode for Pos objects that is OK for our Project3 application.
M
moveToFace(char)
- Method in class
Dir
P
Pos
- Class in
<Unnamed>
A class for representing row/column positions.
Pos(int, int)
- Constructor for class
Pos
Constructs a position from row r and column c.
Pos(Pos)
- Constructor for class
Pos
Constructs a position from Pos p
R
read(Scanner)
- Static method in class
Dir
Read a Dir object (as N,E,S,W) from Scanner.
read(Scanner)
- Static method in class
Pos
Reads a new position from scanner sc, e.g.
S
setBoardSize(int, int)
- Method in class
ShortestPathOracle
Initializes the ShortestPathOracle to the given board dimensions.
ShortestPathOracle
- Class in
<Unnamed>
ShortestPathOracle()
- Constructor for class
ShortestPathOracle
stepFrom(Pos)
- Method in class
Dir
Returns the position resulting from one step in this direction from position p.
sum(Pos)
- Method in class
Pos
Returns a new point whose row is the sum of this's row and p's row, and column likewise.
T
toString()
- Method in class
Dir
Represents the direction as one of the strings "N", "E", "S", or "W".
toString()
- Method in class
Pos
Returns a string representation, e.g.
turn(char)
- Method in class
Dir
Returns the direction you would be heading after making "move" from the current direction.
A
D
E
G
H
M
P
R
S
T
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes