JGraph
v5.13.0.0


com.jgraph.algebra.cost
Class JGraphDistanceCostFunction

java.lang.Object
  extended by com.jgraph.algebra.cost.JGraphDistanceCostFunction
All Implemented Interfaces:
JGraphCostFunction

public class JGraphDistanceCostFunction
extends Object
implements JGraphCostFunction

This class implements a priority queue.


Field Summary
protected  CellMapper mapper
           
 
Constructor Summary
JGraphDistanceCostFunction(CellMapper mapper)
           
 
Method Summary
 double getCost(Object cell)
          Evaluates the cost of 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

JGraphDistanceCostFunction

public JGraphDistanceCostFunction(CellMapper mapper)
Method Detail

getCost

public double getCost(Object cell)
Description copied from interface: JGraphCostFunction
Evaluates the cost of cell.

Specified by:
getCost in interface JGraphCostFunction
Parameters:
cell - the cell to be evaluated
Returns:
Returns the cost to traverse cell

getLength

public static double getLength(CellView view)

JGraph
v5.13.0.0


Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.