public class JGraphDistanceCostFunction extends Object implements JGraphCostFunction
Modifier and Type | Field and Description |
---|---|
protected CellMapper |
mapper |
Constructor and Description |
---|
JGraphDistanceCostFunction(CellMapper mapper) |
Modifier and Type | Method and Description |
---|---|
double |
getCost(Object cell)
Evaluates the cost of
cell . |
static double |
getLength(CellView view) |
protected CellMapper mapper
public JGraphDistanceCostFunction(CellMapper mapper)
public double getCost(Object cell)
JGraphCostFunction
cell
.getCost
in interface JGraphCostFunction
cell
- the cell to be evaluatedcell
public static double getLength(CellView view)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.