org.jgraph.algebra
Class DefaultCostFunction

java.lang.Object
  extended byorg.jgraph.algebra.DefaultCostFunction
All Implemented Interfaces:
CostFunction

public class DefaultCostFunction
extends java.lang.Object
implements CostFunction


Field Summary
protected  CellMapper mapper
           
 
Constructor Summary
DefaultCostFunction(CellMapper mapper)
           
 
Method Summary
 double getCost(java.lang.Object cell)
           
static double getLength(CellView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

protected CellMapper mapper
Constructor Detail

DefaultCostFunction

public DefaultCostFunction(CellMapper mapper)
Method Detail

getCost

public double getCost(java.lang.Object cell)
Specified by:
getCost in interface CostFunction

getLength

public static double getLength(CellView view)