us.ihmc.utilities.dataStructures.hyperCubeTree
Class HyperCubeNode<T,D>

java.lang.Object
  extended by us.ihmc.utilities.dataStructures.hyperCubeTree.HyperCubeNode<T,D>
All Implemented Interfaces:
RecursableHyperTreeNode<T,D>

public class HyperCubeNode<T,D>
extends java.lang.Object
implements RecursableHyperTreeNode<T,D>


Method Summary
 void clear()
           
 OneDimensionalBounds getBounds(int i)
           
 OneDimensionalBounds[] getBoundsCopy()
           
 RecursableHyperTreeNode<T,D> getChild(int number)
           
 RecursableHyperTreeNode<T,D> getChildAtLocation(double[] location)
           
 int getChildNumber()
           
 int getDimensionality()
           
 HyperCubeLeaf<T> getLeaf()
           
 D getMetaData()
           
 double[] getMidpoint()
           
 boolean hasChildren()
           
 void setLeaf(HyperCubeLeaf<T> leaf)
           
 void setMetaData(D metaData)
           
 void split()
           
 java.lang.String toString()
           
 void updateMetaDataListeners()
           
static boolean withinBounds(OneDimensionalBounds[] bounds, double[] input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setMetaData

public void setMetaData(D metaData)
Specified by:
setMetaData in interface RecursableHyperTreeNode<T,D>

getMetaData

public D getMetaData()
Specified by:
getMetaData in interface RecursableHyperTreeNode<T,D>

clear

public void clear()
Specified by:
clear in interface RecursableHyperTreeNode<T,D>

getBounds

public OneDimensionalBounds getBounds(int i)
Specified by:
getBounds in interface RecursableHyperTreeNode<T,D>

getBoundsCopy

public OneDimensionalBounds[] getBoundsCopy()
Specified by:
getBoundsCopy in interface RecursableHyperTreeNode<T,D>

getDimensionality

public int getDimensionality()
Specified by:
getDimensionality in interface RecursableHyperTreeNode<T,D>

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface RecursableHyperTreeNode<T,D>

getChildNumber

public int getChildNumber()
Specified by:
getChildNumber in interface RecursableHyperTreeNode<T,D>

getLeaf

public HyperCubeLeaf<T> getLeaf()
Specified by:
getLeaf in interface RecursableHyperTreeNode<T,D>

setLeaf

public void setLeaf(HyperCubeLeaf<T> leaf)
Specified by:
setLeaf in interface RecursableHyperTreeNode<T,D>

updateMetaDataListeners

public void updateMetaDataListeners()
Specified by:
updateMetaDataListeners in interface RecursableHyperTreeNode<T,D>

split

public void split()
Specified by:
split in interface RecursableHyperTreeNode<T,D>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getChildAtLocation

public RecursableHyperTreeNode<T,D> getChildAtLocation(double[] location)
Specified by:
getChildAtLocation in interface RecursableHyperTreeNode<T,D>

getChild

public RecursableHyperTreeNode<T,D> getChild(int number)
Specified by:
getChild in interface RecursableHyperTreeNode<T,D>

withinBounds

public static boolean withinBounds(OneDimensionalBounds[] bounds,
                                   double[] input)

getMidpoint

public double[] getMidpoint()
Specified by:
getMidpoint in interface RecursableHyperTreeNode<T,D>