|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.examples.sudoku.SetOfNine
org.drools.examples.sudoku.Cell
public class Cell
Represents a single cell in the Sudoku grid.
Constructor Summary | |
---|---|
Cell()
Constructor, leaving all references at null. |
Method Summary | |
---|---|
CellCol |
getCellCol()
Returns the column group of nine of this cell. |
CellRow |
getCellRow()
Returns the row group of nine of this cell. |
CellSqr |
getCellSqr()
Returns the 3x3 block group of nine of this cell. |
int |
getColNo()
Returns the column number. |
Set<Cell> |
getExCells()
Return the set of Cell objects where contents are mutually exclusive with this cell; they are in the same row or same column or same block. |
int |
getRowNo()
Returns the row number. |
Integer |
getValue()
Retrieves the value. |
void |
makeReferences(CellRow row,
CellCol col,
CellSqr sqr)
Set references to all cell groups containing this cell. |
String |
posAsString()
|
void |
setValue(Integer value)
Set the cell value. |
String |
toString()
|
String |
valueAsString()
|
Methods inherited from class org.drools.examples.sudoku.SetOfNine |
---|
blockExcept, blockValue, getFree, getFreeCount, getFreeValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cell()
Method Detail |
---|
public void makeReferences(CellRow row, CellCol col, CellSqr sqr)
row
- the cell group for the rowcol
- the cell group for the columnsqr
- the cell group for the square 3x3 areapublic Integer getValue()
public void setValue(Integer value)
value
- an Integer objectpublic Set<Cell> getExCells()
public CellRow getCellRow()
public int getRowNo()
public CellCol getCellCol()
public int getColNo()
public CellSqr getCellSqr()
public String toString()
toString
in class Object
public String valueAsString()
public String posAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |