

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
public interface PuzzleSolver<P extends Puzzle,Q extends PuzzleState<P>>
Interface representing a solver for a certain type of logic puzzle. The
solver may assume that if any other object modifies the state then the
method start()
will be called before the solving methods are used
again.
Method Summary  

P 
getPuzzle()
Returns the puzzle which is being solved. 
Q 
getState()
Returns the state of the solution attempt. 
boolean 
pass()
Performs a single pass through the puzzle. 
boolean 
solve()
Attempts to completely solve the puzzle. 
void 
start()
Restarts the solving process. 
boolean 
step()
Performs a single step in the solving process. 
Method Detail 

P getPuzzle()
Puzzle
which this PuzzleSolver
relates to.Q getState()
Puzzle
which this State
relates to.void start()
boolean step()
puzzle
.
true
iff a change was madeboolean pass()
step
and solve
. If no intermediate is available,
this should perform the same function as step
.
Note that unlike the other solving methods, this method may return
false
even when this solver can still make further deductions.
true
iff a change was madeboolean solve()
while (this.step());
and to
while (this.pass());
true
iff a change was made


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 