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 Var
s 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
Constructor Summary |
QueenCustomizer(float randomRatio)
Sets the rate of random. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QueenCustomizer
public QueenCustomizer(float randomRatio)
- Sets the rate of random.
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
Var
s 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