|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.algebra.cost.JGraphDistanceCostFunction
public class JGraphDistanceCostFunction
This class implements a priority queue.
Field Summary | |
---|---|
protected CellMapper |
mapper
|
Constructor Summary | |
---|---|
JGraphDistanceCostFunction(CellMapper mapper)
|
Method Summary | |
---|---|
double |
getCost(java.lang.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 |
---|
protected CellMapper mapper
Constructor Detail |
---|
public JGraphDistanceCostFunction(CellMapper mapper)
Method Detail |
---|
public double getCost(java.lang.Object cell)
JGraphCostFunction
cell
.
getCost
in interface JGraphCostFunction
cell
- the cell to be evaluated
cell
public static double getLength(CellView view)
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |