org.drools.examples.sudoku
Class CellGroup
java.lang.Object
org.drools.examples.sudoku.SetOfNine
org.drools.examples.sudoku.CellGroup
- Direct Known Subclasses:
- CellFile, CellSqr
public abstract class CellGroup
- extends SetOfNine
Abstract base class for all kinds of groups of related cells.
Constructor Summary |
protected |
CellGroup()
Constructor. |
Method Summary |
void |
addCell(Cell cell)
Add another Cell object to the cells of this group. |
List<Cell> |
getCells()
Returns the Cell objects in this group. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allNine
public static Set<Integer> allNine
CellGroup
protected CellGroup()
- Constructor.
addCell
public void addCell(Cell cell)
- Add another Cell object to the cells of this group.
- Parameters:
cell
- a Cell object.
getCells
public List<Cell> getCells()
- Returns the Cell objects in this group.
- Returns:
- a List of Cell objects.
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.