|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.jussieu.gla.wasa.core.Algorithm
The heart of the WASA framework, containing the Adaptative Search Algorithm implementation.
Start from a random assignment of variables in V
|
Constructor Summary | |
Algorithm(Engine engine)
|
Method Summary | |
protected void |
customize()
|
protected void |
evaluateConstraints()
Evaluates Constraints on current Buisness Object state. |
protected AlgorithmState |
explore()
Evaluates Constraints on current Buisness Object state. |
protected Evaluation |
getAbsoluteBest()
|
protected Evaluation |
getBestInLastNeighbourhood()
|
protected Constraint |
getCurrentConstraint()
|
protected Engine |
getEngine()
|
protected boolean |
getErrorAssigned()
|
protected ErrorTable |
getErrorTable()
|
protected Evaluation |
getLastEvaluation()
|
protected Problem |
getProblem()
|
protected Var |
getSelectedVar()
|
AlgorithmState |
getState()
|
protected Evaluation |
getStepStartPoint()
|
protected TabuList |
getTabuList()
|
protected void |
setState(AlgorithmState newState)
|
AlgorithmState |
step()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Algorithm(Engine engine)
Method Detail |
protected Engine getEngine()
protected Problem getProblem()
protected TabuList getTabuList()
protected ErrorTable getErrorTable()
public AlgorithmState getState()
protected void setState(AlgorithmState newState)
protected Evaluation getAbsoluteBest()
protected Evaluation getStepStartPoint()
protected Evaluation getBestInLastNeighbourhood()
protected Evaluation getLastEvaluation()
protected Constraint getCurrentConstraint()
protected boolean getErrorAssigned()
protected void evaluateConstraints() throws EngineException, java.lang.CloneNotSupportedException
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
Problem#unsetErrors()
Constraint.evaluate()
#notifyErrorFor( Var )
from Constraint.evaluate()
protected Var getSelectedVar()
protected AlgorithmState explore() throws EngineException, java.lang.CloneNotSupportedException
Instance variables access :
#stepStartPoint
#lastEvaluation
: assigned
#absoluteBest
: re-assigned if better than best was found
Method calls
Problem.restore( Configuration )
Explorer#reset()
Explorer#apply()
protected void customize() throws EngineException, java.lang.CloneNotSupportedException
public AlgorithmState step() throws EngineException, java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |