fr.jussieu.gla.wasa.core
Class DefaultCustomizer

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.core.DefaultCustomizer
All Implemented Interfaces:
java.lang.Cloneable, ICustomizer

public class DefaultCustomizer
extends java.lang.Object
implements ICustomizer

Default (and trivial) implementation of a customizer.

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

Inner Class Summary
static class DefaultCustomizer.NullEditor
          Defines a visual editor for letting the user parametrize a DefaultCustomizer instance.
 
Inner classes inherited from class fr.jussieu.gla.wasa.core.ICustomizer
ICustomizer.ICustomizerEditor
 
Constructor Summary
DefaultCustomizer()
           
 
Method Summary
 java.lang.Object clone()
           
 fr.jussieu.gla.wasa.core.ICustomizerEditor createCustomizerEditor()
          Creates an ICustomizerEditor instance bound to this.
 void processImprovementFound(Problem problem)
          Clears the TabuList.
 void processNoErrorAssigned(Problem problem)
          Does nothing.
 void processNoImprovementFound(Problem problem)
          Reconfigures the buisness objects with a rate of 1 and clear the TabuList, only when the TabuList is full.
 void processNoVarFound(Problem problem)
          Reconfigures the buisness objects with a rate of 1 and clear the TabuList.
 void processUninitialized(Problem problem)
          Reconfigures the buisness objects with a rate of 1 and clear the TabuList.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCustomizer

public DefaultCustomizer()
Method Detail

processUninitialized

public void processUninitialized(Problem problem)
                          throws EngineException
Reconfigures the buisness objects with a rate of 1 and clear the TabuList.
Specified by:
processUninitialized in interface ICustomizer
See Also:
ICustomizer

processNoErrorAssigned

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

processNoVarFound

public void processNoVarFound(Problem problem)
                       throws EngineException
Reconfigures the buisness objects with a rate of 1 and clear the TabuList.
Specified by:
processNoVarFound in interface ICustomizer
See Also:
ICustomizer

processNoImprovementFound

public void processNoImprovementFound(Problem problem)
                               throws EngineException
Reconfigures the buisness objects with a rate of 1 and clear the TabuList, only when 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.core.ICustomizerEditor createCustomizerEditor()
Description copied from interface: ICustomizer
Creates an ICustomizer.ICustomizerEditor instance bound to this.

The program using ICustomizerEditor should take care of hiding its visual component after the user entered parameters, and work on a clone of the ICustomizer parametrized instance. Otherwise, it could lead to unclear situations, where ICustomizer state is not reflected by GUI.

Specified by:
createCustomizerEditor in interface ICustomizer
Following copied from interface: fr.jussieu.gla.wasa.core.ICustomizer
Returns:
an ICustomizerEditor instance.

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