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.
  • Field Details

    • ALL_NINE

      public static final Set<Integer> ALL_NINE
  • Constructor Details

    • CellGroup

      protected CellGroup()
      Constructor.
  • Method Details

    • 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.