|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IState interface is implemented by all the state types used within strategy types to track possible Su Doku solutions.
Method Summary | |
void |
addMove(int x,
int y,
int v)
Updates the state grid to account for the move (x,y):=v. |
void |
eliminateMove(int x,
int y,
int v)
Updates the state grid to account for the fact that the move (x,y):=v has been eliminated as a possibility. |
void |
popState(int nMoves)
Unwinds a state grid from the thread. |
void |
pushState(int nMoves)
Adds a state grid to the thread. |
void |
setup(int boxesAcross,
int boxesDown)
Sets up the state grid and its thread. |
java.lang.String |
toString()
Produces a string representation of the state grid. |
Method Detail |
public void setup(int boxesAcross, int boxesDown)
public void pushState(int nMoves)
nMoves
- thread position to which state should be writtenpublic void popState(int nMoves)
nMoves
- thread position from which state should be readpublic void addMove(int x, int y, int v) throws java.lang.Exception
java.lang.Exception
public void eliminateMove(int x, int y, int v)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |