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
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 |
NotifyingAlgorithm
public NotifyingAlgorithm(Engine engine)
evaluateConstraints
protected void evaluateConstraints()
throws EngineException,
java.lang.CloneNotSupportedException
- Description copied from class:
Algorithm
- Evaluates Constraints on current Buisness Object state.
Instance variables access :
-
#problem
: errors are unset
-
#errorTable
: cleared, then updated with errors set by each
constraint's evaluation
-
#lastEvaluation
: assigned
-
#absoluteBest
: re-assigned if better than best was found
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 :
-
#stepStartPoint
-
#lastEvaluation
: assigned
-
#absoluteBest
: re-assigned if better than best was found
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)