samples.tutorials.puzzles
Class Sudoku

java.lang.Object
  extended by samples.tutorials.PatternExample
      extended by samples.tutorials.puzzles.Sudoku
All Implemented Interfaces:
Example

public class Sudoku
extends PatternExample

Created by IntelliJ IDEA. User: Xavier Lorca Date: 4 sept. 2007 Time: 09:31:10


Field Summary
 
Fields inherited from class samples.tutorials.PatternExample
model, solver
 
Fields inherited from interface samples.tutorials.Example
LOGGER
 
Constructor Summary
Sudoku()
           
 
Method Summary
 void advanced(Model model, IntegerVariable[][] rows, int[][] instance)
           
 void buildModel()
           
 void buildSolver()
           
static void main(String[] args)
           
protected  void parse(String fileName)
           
 void prettyOut()
           
 void printDescription()
           
static void printGrid(IntegerVariable[][] rows, Solver s)
           
 void solve()
           
 
Methods inherited from class samples.tutorials.PatternExample
execute, execute, readArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sudoku

public Sudoku()
Method Detail

printDescription

public void printDescription()
Overrides:
printDescription in class PatternExample

buildModel

public void buildModel()
Specified by:
buildModel in class PatternExample

advanced

public void advanced(Model model,
                     IntegerVariable[][] rows,
                     int[][] instance)

buildSolver

public void buildSolver()
Specified by:
buildSolver in class PatternExample

solve

public void solve()
Specified by:
solve in class PatternExample

prettyOut

public void prettyOut()
Specified by:
prettyOut in class PatternExample

printGrid

public static void printGrid(IntegerVariable[][] rows,
                             Solver s)

main

public static void main(String[] args)

parse

protected void parse(String fileName)


Copyright © 2012. All Rights Reserved.