fr.jussieu.gla.wasa.samples
Class AbstractSample

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.samples.AbstractSample
Direct Known Subclasses:
MagicSquareSample, NaiveQueensSample, NQueensSample, ProgressivePartySample

public abstract class AbstractSample
extends java.lang.Object

Parent of samples.

Version:
$Revision: 1.3 $ $Date: 2002/04/17 15:24:07 $
Author:
Florent Selva, Laurent Caillette

Field Summary
protected  InputPanel inputPanel
           
 
Constructor Summary
AbstractSample()
           
 
Method Summary
abstract  InputPanel createInputPanel()
          This method must create the inputPanel corresponding to the Problem in order to be disposed in the SampleRunner.
abstract  Problem createProblem()
          This method must check sample parameters from the inputPanel attribute in order to create the corresponding Problem.
abstract  void printResult()
          Must display Problem results on the console.
abstract  void textMode()
          Must launch the corresponding problem with default parameters, without the Monitor GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputPanel

protected InputPanel inputPanel
Constructor Detail

AbstractSample

public AbstractSample()
Method Detail

createProblem

public abstract Problem createProblem()
This method must check sample parameters from the inputPanel attribute in order to create the corresponding Problem.

createInputPanel

public abstract InputPanel createInputPanel()
This method must create the inputPanel corresponding to the Problem in order to be disposed in the SampleRunner.

printResult

public abstract void printResult()
Must display Problem results on the console.

textMode

public abstract void textMode()
Must launch the corresponding problem with default parameters, without the Monitor GUI.