|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--index.Query
|
+--spatial.NearestNeighborQuery
Nearest neighbor query for search trees
| Field Summary | |
static int |
ALLLAYERS
all layers. |
static int |
ALLSCALES
all scales. |
protected double |
bestDist
the distance of the nearest object until now. |
protected SpatialSearchTreeObject |
bestObject
nearest object until now. |
protected int[] |
index
the actual serach indices for the different heights of the tree. |
protected int |
layer
layer. |
protected static int |
MAXHEIGHT
maximum allowed height of the subtree. |
protected SpatialSearchTreeNode[] |
node
the actual nodes from the different heights of the tree. |
protected int |
operation
remove mode. |
protected int |
pathLength
length of the path. |
protected int[] |
point
coordinates of query point. |
static int |
QUERY
normal query. |
protected int |
scale
scale, required for testing the visibility |
protected double |
tolerance
tolerance. |
protected SpatialSearchTreeObject |
typeObject
object for type selection. |
protected SpatialSearchTreeObject |
unequal
new rectangle for move. |
| Fields inherited from class index.Query |
queryNum, REMOVEALL, REMOVEEXACT, resultNum, timer, UPDATEALL, UPDATEEXACT |
| Constructor Summary | |
NearestNeighborQuery()
Nearest Neighbor query constructor. |
|
| Method Summary | |
SpatialSearchTreeObject |
getNearestObject()
Returns the next object fulfilling the query condition. |
protected void |
getNextObject(int actHeight)
Returns (or removes or moves) the next object(s) fulfilling the query condition. |
void |
initWithPoint(SpatialSearchTree tree,
int[] point)
Initializes a new query point. |
void |
initWithPoint(SpatialSearchTree tree,
int[] point,
int scale,
int tolerance,
int layer,
SpatialSearchTreeObject typeObject)
Initializes a new query point. |
void |
initWithPoint(SpatialSearchTree tree,
int[] point,
int scale,
int layer,
SpatialSearchTreeObject typeObject,
int operation,
SpatialSearchTreeObject unequal)
Initializes a new query point. |
protected void |
reset()
Resets the query. |
| Methods inherited from class index.Query |
getQueryNum, getQueryTime, getResultNum, resetCounters, setCounters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALLLAYERS
public static final int ALLSCALES
public static final int QUERY
protected int[] point
protected double tolerance
protected int scale
protected int layer
protected int operation
protected SpatialSearchTreeObject unequal
protected SpatialSearchTreeObject typeObject
protected SpatialSearchTreeObject bestObject
protected double bestDist
protected static final int MAXHEIGHT
protected SpatialSearchTreeNode[] node
protected int[] index
protected int pathLength
| Constructor Detail |
public NearestNeighborQuery()
| Method Detail |
public SpatialSearchTreeObject getNearestObject()
protected void getNextObject(int actHeight)
actHeight - actual height
public void initWithPoint(SpatialSearchTree tree,
int[] point)
tree - the searchtreepoint - coordinates of the query point
public void initWithPoint(SpatialSearchTree tree,
int[] point,
int scale,
int tolerance,
int layer,
SpatialSearchTreeObject typeObject)
tree - the searchtreepoint - coordinates of the query pointscale - scaletolerance - tolerancelayer - layer
public void initWithPoint(SpatialSearchTree tree,
int[] point,
int scale,
int layer,
SpatialSearchTreeObject typeObject,
int operation,
SpatialSearchTreeObject unequal)
tree - the searchtreepoint - coordinates of the query pointscale - scalelayer - layeroperation - operationunequal - unequal objectprotected void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||