net.sf.kagiru.core
Class Cell
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Cell
public Cell(Puzzle puzzle,
int column,
int row)
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 . It is licensed under the and comes with NO WARRANTY. See file for more info.