net.sf.kagiru.core
Class Cell

java.lang.Object
  extended by net.sf.kagiru.core.Cell
All Implemented Interfaces:
java.io.Serializable

public class Cell
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Cell(Puzzle puzzle, int column, int row)
           
 
Method Summary
 boolean allows(java.lang.String value)
           
 Cell clone(Puzzle puzzle)
           
 java.util.List<java.lang.String> getAllowedValues()
           
 int getColumn()
           
 java.util.List<Cell> getConstrainedCells()
           
 int getRow()
           
 Cell getSymmetricOpposite()
           
 java.lang.String getValue()
           
 boolean isPredefined()
           
 boolean isSolved()
           
 boolean isValid()
           
 void resetRestraints()
           
 void restrain(java.lang.String value)
           
 void setValue(java.lang.String value, boolean predefined)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cell

public Cell(Puzzle puzzle,
            int column,
            int row)
Method Detail

allows

public boolean allows(java.lang.String value)

clone

public Cell clone(Puzzle puzzle)

getAllowedValues

public java.util.List<java.lang.String> getAllowedValues()

getColumn

public int getColumn()

getConstrainedCells

public java.util.List<Cell> getConstrainedCells()

getRow

public int getRow()

getValue

public java.lang.String getValue()
                          throws CellUnsolvedException
Throws:
CellUnsolvedException

isPredefined

public boolean isPredefined()

isSolved

public boolean isSolved()

isValid

public boolean isValid()

resetRestraints

public void resetRestraints()

restrain

public void restrain(java.lang.String value)
              throws CannotRestrainSolvedCell
Throws:
CannotRestrainSolvedCell

setValue

public void setValue(java.lang.String value,
                     boolean predefined)
              throws ValueOutOfRangeException
Throws:
ValueOutOfRangeException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSymmetricOpposite

public Cell getSymmetricOpposite()


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.