net.sf.kagiru.solving
Class SudokuSolver

java.lang.Object
  extended by net.sf.myjaut.Observeable<SudokuSolverListener>
      extended by net.sf.kagiru.solving.SudokuSolver
All Implemented Interfaces:
Command<PuzzleUnsolvableException>
Direct Known Subclasses:
CombinedSudokuSolver, IsolatingSudokuSolver, MarkingSudokuSolver

public abstract class SudokuSolver
extends Observeable<SudokuSolverListener>
implements Command<PuzzleUnsolvableException>

Abstract class for Sudoku solver implementations.


Field Summary
 
Fields inherited from class net.sf.myjaut.Observeable
listeners
 
Constructor Summary
SudokuSolver(Puzzle puzzle)
           
 
Method Summary
 Puzzle getPuzzle()
           
protected  void signalStep(SudokuSolver solver, int stepType)
          Helper method to signal step, useful for solver follow-up.
 
Methods inherited from class net.sf.myjaut.Observeable
addListener, getListeners, removeListener, signalFirstListener, signalNoListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.myjaut.cmd.Command
execute
 

Constructor Detail

SudokuSolver

public SudokuSolver(Puzzle puzzle)
Method Detail

getPuzzle

public Puzzle getPuzzle()

signalStep

protected void signalStep(SudokuSolver solver,
                          int stepType)
Helper method to signal step, useful for solver follow-up.

Parameters:
solver - Solver having performed the step.
stepType - Type of step that solver performed.


This code documentation is disclosed as part of Kagiru Sudoku. It is licensed under the GNU General Public License (GPL) and comes with NO WARRANTY. See file license.txt for more info.