Class JGraphDistanceCostFunction

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

public class JGraphDistanceCostFunction extends Object implements JGraphCostFunction
This class implements a priority queue.
  • Field Details

  • Constructor Details

    • JGraphDistanceCostFunction

      public JGraphDistanceCostFunction(CellMapper mapper)
  • Method Details

    • 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)