net.sf.kagiru.core
Class Region

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<Cell>
              extended by net.sf.kagiru.core.Region
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Cell>, java.util.Collection<Cell>, java.util.Set<Cell>

public class Region
extends java.util.HashSet<Cell>

See Also:
Serialized Form

Constructor Summary
Region(Puzzle puzzle)
           
 
Method Summary
 java.util.Collection<Region> getAllMainRegionsThisRegionIsASubsetFrom()
           
 Region getComplement(Region isolationRegion)
           
 Cell getFirst()
           
 Region isolate(java.lang.String value)
           
 void restrainForAllCells(java.lang.String value)
           
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Region

public Region(Puzzle puzzle)
Method Detail

getAllMainRegionsThisRegionIsASubsetFrom

public java.util.Collection<Region> getAllMainRegionsThisRegionIsASubsetFrom()

getComplement

public Region getComplement(Region isolationRegion)

getFirst

public Cell getFirst()
              throws EmptyRegionException
Throws:
EmptyRegionException

isolate

public Region isolate(java.lang.String value)
Returns:
the region the given value can be isolated within this region

restrainForAllCells

public void restrainForAllCells(java.lang.String value)
                         throws PuzzleHasNoSolutionException
Throws:
PuzzleHasNoSolutionException


This code documentation is disclosed as part of Kagiru Sudoku. It is licensed under the GNU General Public License (GPL) and comes with NO WARRANTY. See file license.txt for more info.