fr.jussieu.gla.wasa.samples.magicsquare
Class MagicSquareSample

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.samples.AbstractSample
        |
        +--fr.jussieu.gla.wasa.samples.magicsquare.MagicSquareSample

public class MagicSquareSample
extends AbstractSample

The Magic Square sample.

Version:
1.0
Author:
Florent Selva, Laurent Caillette

Fields inherited from class fr.jussieu.gla.wasa.samples.AbstractSample
inputPanel
 
Constructor Summary
MagicSquareSample()
           
 
Method Summary
 InputPanel createInputPanel()
          Creates and returns an NumberInputPanel specialized for the magic square.
 Problem createProblem()
          Creates and returns the MagicSquare problem.
static void main(java.lang.String[] args)
          Launches a pre-configured MagicSquareProblem without the Monitor.
 void printResult()
          Displays informations about the magic square.
 void textMode()
          Launches a pre-configured MagicSquareProblem without the Monitor.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MagicSquareSample

public MagicSquareSample()
Method Detail

createInputPanel

public InputPanel createInputPanel()
Creates and returns an NumberInputPanel specialized for the magic square.
Overrides:
createInputPanel in class AbstractSample

createProblem

public Problem createProblem()
Creates and returns the MagicSquare problem.
Overrides:
createProblem in class AbstractSample

printResult

public void printResult()
Displays informations about the magic square.
Overrides:
printResult in class AbstractSample

toString

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

textMode

public void textMode()
Launches a pre-configured MagicSquareProblem without the Monitor.
Overrides:
textMode in class AbstractSample

main

public static void main(java.lang.String[] args)
Launches a pre-configured MagicSquareProblem without the Monitor.