org.drools.examples.sudoku
Class CellGroup

java.lang.Object
  extended by org.drools.examples.sudoku.SetOfNine
      extended by 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.


Field Summary
static Set<Integer> allNine
           
 
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 org.drools.examples.sudoku.SetOfNine
blockExcept, blockValue, getFree, getFreeCount, getFreeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allNine

public static Set<Integer> allNine
Constructor Detail

CellGroup

protected CellGroup()
Constructor.

Method Detail

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.