fr.jussieu.gla.wasa.monitor.event
Class NotifyingAlgorithm

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.core.Algorithm
        |
        +--fr.jussieu.gla.wasa.monitor.event.NotifyingAlgorithm

public class NotifyingAlgorithm
extends Algorithm

An extension of the Algorithm casting events for notifying algorithm steps.

Version:
$Revision: 1.14 $ $Date: 2002/04/10 18:04:31 $
Author:
Laurent Caillette

Constructor Summary
NotifyingAlgorithm(Engine engine)
           
 
Method Summary
 void addListener(AlgorithmListener listener)
           
protected  void customize()
           
protected  void evaluateConstraints()
          Evaluates Constraints on current Buisness Object state.
protected  AlgorithmState explore()
          Evaluates Constraints on current Buisness Object state.
 void removeListener(AlgorithmListener listener)
           
 AlgorithmState step()
           
 
Methods inherited from class fr.jussieu.gla.wasa.core.Algorithm
getAbsoluteBest, getBestInLastNeighbourhood, getCurrentConstraint, getEngine, getErrorAssigned, getErrorTable, getLastEvaluation, getProblem, getSelectedVar, getState, getStepStartPoint, getTabuList, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifyingAlgorithm

public NotifyingAlgorithm(Engine engine)
Method Detail

evaluateConstraints

protected void evaluateConstraints()
                            throws EngineException,
                                   java.lang.CloneNotSupportedException
Description copied from class: Algorithm
Evaluates Constraints on current Buisness Object state.

Instance variables access :

Method calls

Overrides:
evaluateConstraints in class Algorithm

explore

protected AlgorithmState explore()
                          throws EngineException,
                                 java.lang.CloneNotSupportedException
Description copied from class: Algorithm
Evaluates Constraints on current Buisness Object state.

Instance variables access :

Method calls

Overrides:
explore in class Algorithm
Following copied from class: fr.jussieu.gla.wasa.core.Algorithm
Returns:
false if no Var to run an Explorer on was found, true otherwise.

customize

protected void customize()
                  throws EngineException,
                         java.lang.CloneNotSupportedException
Overrides:
customize in class Algorithm

step

public AlgorithmState step()
                    throws EngineException,
                           java.lang.CloneNotSupportedException
Overrides:
step in class Algorithm

addListener

public void addListener(AlgorithmListener listener)

removeListener

public void removeListener(AlgorithmListener listener)