Class NodeData<T>

  • Type Parameters:
    T -

    public final class NodeData<T>
    extends java.lang.Object
    NodeData stores all information of the node needed by the AStar algorithm. This information includes the value of g, h, and f. However, the value of all 3 variables are dependent on source and destination, thus obtains at runtime.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Dec 31, 2015
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeData​(T nodeId, com.carrotsearch.hppc.ObjectDoubleMap<T> heuristic)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calcF​(T destination, T source)  
      double getG​(T source)  
      void setG​(T source, double g)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeData

        public NodeData​(T nodeId,
                        com.carrotsearch.hppc.ObjectDoubleMap<T> heuristic)
    • Method Detail

      • setG

        public void setG​(T source,
                         double g)
      • getG

        public double getG​(T source)
      • calcF

        public void calcF​(T destination,
                          T source)