algo.api
Class AbstractSolver

java.lang.Object
  extended by algo.api.AbstractSolver
All Implemented Interfaces:
Solver
Direct Known Subclasses:
BreadthFirstSolver, DepthFirstBranchAndBoundSolver, DepthFirstSolver

public abstract class AbstractSolver
extends java.lang.Object
implements Solver


Field Summary
static double bestObjective
           
static Solution bestSolution
           
 
Constructor Summary
AbstractSolver()
           
 
Method Summary
protected abstract  void search(Solution initial)
           
 Solution solve(Solution initial)
           
 void updateBest(Solution solution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bestSolution

public static Solution bestSolution

bestObjective

public static double bestObjective
Constructor Detail

AbstractSolver

public AbstractSolver()
Method Detail

search

protected abstract void search(Solution initial)

solve

public Solution solve(Solution initial)
Specified by:
solve in interface Solver

updateBest

public void updateBest(Solution solution)