Package org.drools.examples.sudoku.swing
Interface SudokuGridModel
- All Known Implementing Classes:
Sudoku
public interface SudokuGridModel
An interface representing a 9x9 Sudoku Grid of Cells.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe number of rows that make up a zone within the Gridstatic final intThe number of colums that make up a zone within the Gridstatic final intThe number of columns in the Grid, i.e.static final intThe number of rows in the Grid, i.e. -
Method Summary
Modifier and TypeMethodDescriptionvoidgetCellValue(int iRow, int iCol) voidvoidsetCellValues(Integer[][] cellValues) voidsolve()voidstep()
-
Field Details
-
NUM_ROWS
static final int NUM_ROWSThe number of rows in the Grid, i.e. the height- See Also:
-
NUM_COLS
static final int NUM_COLSThe number of columns in the Grid, i.e. the width- See Also:
-
INNER_GRID_WIDTH
static final int INNER_GRID_WIDTHThe number of colums that make up a zone within the Grid- See Also:
-
INNER_GRID_HEIGHT
static final int INNER_GRID_HEIGHTThe number of rows that make up a zone within the Grid- See Also:
-
-
Method Details
-
setCellValues
-
getCellValue
-
solve
void solve() -
step
void step() -
addSudokuGridListener
-
removeSudokuGridListener
-