Class KdNode.KdValueFetcherX
- java.lang.Object
 - 
- jadex.extension.envsupport.environment.space2d.KdNode.KdValueFetcherX
 
 
- 
- All Implemented Interfaces:
 KdNode.IKdValueFetcher
- Enclosing class:
 - KdNode
 
protected static class KdNode.KdValueFetcherX extends java.lang.Object implements KdNode.IKdValueFetcher
Fetcher for the x-axis values. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static java.util.ComparatorCOMPARATORStatic comparator to avoid instantiation overheadstatic KdNode.KdValueFetcherXFETCHERStatic fetcher to avoid instantiation overhead 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedKdValueFetcherX() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<ISpaceObject>getComparator()Returns a comparator for sorting within the current hyperplane.doublegetValue(IVector2 point)Returns the coordinate value of the current hyperplane.KdNode.IKdValueFetchernextFetcher()Returns the fetcher for the next hyperplane in the tree. 
 - 
 
- 
- 
Field Detail
- 
FETCHER
public static final KdNode.KdValueFetcherX FETCHER
Static fetcher to avoid instantiation overhead 
- 
COMPARATOR
protected static final java.util.Comparator COMPARATOR
Static comparator to avoid instantiation overhead 
 - 
 
- 
Method Detail
- 
getValue
public double getValue(IVector2 point)
Returns the coordinate value of the current hyperplane.- Specified by:
 getValuein interfaceKdNode.IKdValueFetcher- Parameters:
 point- The input value.- Returns:
 - Coordinate value of the current hyperplane.
 
 
- 
nextFetcher
public KdNode.IKdValueFetcher nextFetcher()
Returns the fetcher for the next hyperplane in the tree.- Specified by:
 nextFetcherin interfaceKdNode.IKdValueFetcher- Returns:
 - Fetcher for the next hyperplane in the tree.
 
 
- 
getComparator
public java.util.Comparator<ISpaceObject> getComparator()
Returns a comparator for sorting within the current hyperplane.- Specified by:
 getComparatorin interfaceKdNode.IKdValueFetcher- Returns:
 - Comparator for sorting within the current hyperplane.
 
 
 - 
 
 -