net.sf.kagiru.core
Class PuzzleState

java.lang.Object
  extended by net.sf.kagiru.core.PuzzleState
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HaltedState, PlayState

public abstract class PuzzleState
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PuzzleState()
           
 
Method Summary
 boolean canPause()
           
 int getCompletionDenumerator(Puzzle puzzle)
           
 int getCompletionNumerator(Puzzle puzzle)
           
 boolean getPause()
           
 boolean isCellEditable(Puzzle puzzle, int column, int row)
           
 boolean isFinished(Puzzle puzzle)
           
 void setPause(Puzzle puzzle, boolean pause)
           
 void signalLeaving(Puzzle puzzle, PuzzleState newState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PuzzleState

public PuzzleState()
Method Detail

signalLeaving

public void signalLeaving(Puzzle puzzle,
                          PuzzleState newState)

isFinished

public boolean isFinished(Puzzle puzzle)

setPause

public void setPause(Puzzle puzzle,
                     boolean pause)
              throws CannotPauseException
Throws:
CannotPauseException

canPause

public boolean canPause()

getPause

public boolean getPause()

isCellEditable

public boolean isCellEditable(Puzzle puzzle,
                              int column,
                              int row)

getCompletionNumerator

public int getCompletionNumerator(Puzzle puzzle)

getCompletionDenumerator

public int getCompletionDenumerator(Puzzle puzzle)


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.