Class VOIManager.TreeNode

  • Enclosing class:
    VOIManager

    public class VOIManager.TreeNode
    extends java.lang.Object
    Tree node. Contains data (the integer position and float cost) and pointers to the left and right children.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeNode​(int position, float cost)
      Creates a new tree node with the given data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Returns readable representation of this node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cost

        public float cost
        Cost of position.
      • position

        public int position
        Position in array seededCosts.
    • Constructor Detail

      • TreeNode

        public TreeNode​(int position,
                        float cost)
        Creates a new tree node with the given data.
        Parameters:
        position - Position in array seededCosts.
        cost - Cost of node.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns readable representation of this node.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Readable representation of node.