|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.examples.sudoku.SetOfNine
public abstract class SetOfNine
Abstract base class for the three types of cell groups of nine cells.
Constructor Summary | |
---|---|
protected |
SetOfNine()
|
Method Summary | |
---|---|
void |
blockExcept(Integer... values)
Redefine the set of acceptable values for this cell. |
void |
blockValue(Integer i)
Remove an Integer from the values still to be assigned to some cell of this group. |
Set<Integer> |
getFree()
Returns the set of Integers that still need to be assigned to some cell of this group. |
int |
getFreeCount()
Returns the number of Integers that still need to be assigned to some cell of this group. |
Integer |
getFreeValue()
Returns the first (only) permissible Integer value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SetOfNine()
Method Detail |
---|
public void blockExcept(Integer... values)
values
- the Integer objects representing the new set of acceptable values.public void blockValue(Integer i)
i
- an Integer objectpublic Set<Integer> getFree()
public int getFreeCount()
public Integer getFreeValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |