solver
Class Solver

java.lang.Object
  extended by solver.Solver
Direct Known Subclasses:
HeuristicSolver, HierarchicalClusteringSolver

public abstract class Solver
extends java.lang.Object


Field Summary
protected  HierarchicalClusteringInstance instance
           
 
Constructor Summary
Solver(HierarchicalClusteringInstance instance)
          Constructs a Hierarchical-Clustering solver.
 
Method Summary
 DistanceFunction getSolution()
          Returns the solution as distance-function.
abstract  boolean solve()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected final HierarchicalClusteringInstance instance
Constructor Detail

Solver

public Solver(HierarchicalClusteringInstance instance)
Constructs a Hierarchical-Clustering solver.

Parameters:
distanceFunctions - distance function (will be copied)
Method Detail

getSolution

public DistanceFunction getSolution()
Returns the solution as distance-function.

Returns:

solve

public abstract boolean solve()
                       throws UnsolvableExecption
Throws:
UnsolvableExecption