JGraphLayout
v1.4.0.2


com.jgraph.algebra.cost
Class JGraphDistanceCostFunction

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

public class JGraphDistanceCostFunction
extends Object
implements JGraphCostFunction

This class implements a priority queue.


Field Summary
protected  org.jgraph.graph.CellMapper mapper
           
 
Constructor Summary
JGraphDistanceCostFunction(org.jgraph.graph.CellMapper mapper)
           
 
Method Summary
 double getCost(Object cell)
          Evaluates the cost of cell.
static double getLength(org.jgraph.graph.CellView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

protected org.jgraph.graph.CellMapper mapper
Constructor Detail

JGraphDistanceCostFunction

public JGraphDistanceCostFunction(org.jgraph.graph.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(org.jgraph.graph.CellView view)

JGraphLayout
v1.4.0.2


Copyright (C) 2005 JGraph.com. All rights reserved.