fr.jussieu.gla.wasa.samples.queens
Class QueenCustomizer

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.samples.queens.QueenCustomizer
All Implemented Interfaces:
java.lang.Cloneable, ICustomizer

public class QueenCustomizer
extends java.lang.Object
implements ICustomizer

The NQueen customizer, which randomize with a certain rate of Vars each time there is no improvement found and that the TabuList is full.

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

Inner classes inherited from class fr.jussieu.gla.wasa.core.ICustomizer
ICustomizer.ICustomizerEditor
 
Constructor Summary
QueenCustomizer(float randomRatio)
          Sets the rate of random.
 
Method Summary
 java.lang.Object clone()
           
 fr.jussieu.gla.wasa.samples.queens.ICustomizerEditor createCustomizerEditor()
          Returns null
 void processImprovementFound(Problem problem)
          Clears the TabuList.
 void processNoErrorAssigned(Problem problem)
          Do nothing.
 void processNoImprovementFound(Problem problem)
          Random with a certain rate of Vars each time the TabuList is full.
 void processNoVarFound(Problem problem)
          Random of the whole Vars and clears the TabuList when Problem is uninitialized.
 void processUninitialized(Problem problem)
          Random of the whole Vars and clears the TabuList when Problem is uninitialized.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueenCustomizer

public QueenCustomizer(float randomRatio)
Sets the rate of random.
Method Detail

processUninitialized

public void processUninitialized(Problem problem)
                          throws EngineException
Random of the whole Vars and clears the TabuList when Problem is uninitialized.
Specified by:
processUninitialized in interface ICustomizer
See Also:
ICustomizer

processNoErrorAssigned

public void processNoErrorAssigned(Problem problem)
                            throws EngineException
Do nothing.
Specified by:
processNoErrorAssigned in interface ICustomizer
See Also:
ICustomizer

processNoVarFound

public void processNoVarFound(Problem problem)
                       throws EngineException
Random of the whole Vars and clears the TabuList when Problem is uninitialized.
Specified by:
processNoVarFound in interface ICustomizer
See Also:
ICustomizer

processNoImprovementFound

public void processNoImprovementFound(Problem problem)
                               throws EngineException
Random with a certain rate of Vars each time the TabuList is full.
Specified by:
processNoImprovementFound in interface ICustomizer
See Also:
ICustomizer

processImprovementFound

public void processImprovementFound(Problem problem)
                             throws EngineException
Clears the TabuList.
Specified by:
processImprovementFound in interface ICustomizer
See Also:
ICustomizer

createCustomizerEditor

public fr.jussieu.gla.wasa.samples.queens.ICustomizerEditor createCustomizerEditor()
Returns null
Specified by:
createCustomizerEditor in interface ICustomizer
Returns:
null

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface ICustomizer
Overrides:
clone in class java.lang.Object

toString

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