Package org.drools.examples.sudoku.swing
Interface SudokuGridModel
-
- All Known Implementing Classes:
Sudoku
public interface SudokuGridModelAn interface representing a 9x9 Sudoku Grid of Cells.
-
-
Field Summary
Fields Modifier and Type Field Description static intINNER_GRID_HEIGHTThe number of rows that make up a zone within the Gridstatic intINNER_GRID_WIDTHThe number of colums that make up a zone within the Gridstatic intNUM_COLSThe number of columns in the Grid, i.e. the widthstatic intNUM_ROWSThe number of rows in the Grid, i.e. the height
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSudokuGridListener(SudokuGridListener l)java.lang.StringgetCellValue(int iRow, int iCol)voidremoveSudokuGridListener(SudokuGridListener l)voidsetCellValues(java.lang.Integer[][] cellValues)voidsolve()voidstep()
-
-
-
Field Detail
-
NUM_ROWS
static final int NUM_ROWS
The number of rows in the Grid, i.e. the height- See Also:
- Constant Field Values
-
NUM_COLS
static final int NUM_COLS
The number of columns in the Grid, i.e. the width- See Also:
- Constant Field Values
-
INNER_GRID_WIDTH
static final int INNER_GRID_WIDTH
The number of colums that make up a zone within the Grid- See Also:
- Constant Field Values
-
INNER_GRID_HEIGHT
static final int INNER_GRID_HEIGHT
The number of rows that make up a zone within the Grid- See Also:
- Constant Field Values
-
-
Method Detail
-
setCellValues
void setCellValues(java.lang.Integer[][] cellValues)
-
getCellValue
java.lang.String getCellValue(int iRow, int iCol)
-
solve
void solve()
-
step
void step()
-
addSudokuGridListener
void addSudokuGridListener(SudokuGridListener l)
-
removeSudokuGridListener
void removeSudokuGridListener(SudokuGridListener l)
-
-