Drools examples 6.2.0.CR4

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> ALL_NINE
           
 
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

ALL_NINE

public static final Set<Integer> ALL_NINE
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.

Drools examples 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.