|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Square
a single Square of the grid
| Field Summary | |
(package private) int |
contents
the contents of the Square |
(package private) Pair |
parent
coordinates of the parent of the Square, during searching |
| Constructor Summary | |
(package private) |
Square(int contents)
Construct a square from specified contents. |
| Method Summary | |
(package private) boolean |
contains(int value)
See if the Square contains specified contents. |
(package private) int |
get()
Return the contents of the Square. |
(package private) boolean |
isMarked()
Set if this Square has been visited. |
(package private) void |
set(int contents)
Set the contents of the Square. |
(package private) void |
setParent(Pair parent)
Set the parent of this Square |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int contents
Pair parent
| Constructor Detail |
Square(int contents)
| Method Detail |
int get()
void set(int contents)
boolean contains(int value)
void setParent(Pair parent)
boolean isMarked()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||