sudoku_state_research
Class SudokuState

java.lang.Object
  extended by sudoku_state_research.SudokuState
All Implemented Interfaces:
State, java.lang.Cloneable

public class SudokuState
extends java.lang.Object
implements State

Classe che definisce lo stato di una griglia Sudoku prima, durante e dopo l'esecuzione dell'algoritmo.

Author:
Marco Cornolti

Field Summary
(package private)  Sudoku table
           
 
Constructor Summary
SudokuState(Sudoku newtab)
          Costruisce uno stato da una tabella.
 
Method Summary
 java.util.Iterator successors()
           
 java.lang.String toString()
           
 double value()
          Returns the value, a value of 0 means the goal has been reached
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

Sudoku table
Constructor Detail

SudokuState

public SudokuState(Sudoku newtab)
Costruisce uno stato da una tabella.

Parameters:
newtab - la tabella da cui creare lo stato
Method Detail

successors

public java.util.Iterator successors()
Specified by:
successors in interface State
Returns:
the iterator for successors, orderd as increasing values

value

public double value()
Description copied from interface: State
Returns the value, a value of 0 means the goal has been reached

Specified by:
value in interface State
Returns:
value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object