Class AbstractSplitter<T>
- java.lang.Object
-
- org.jungrapht.visualization.spatial.rtree.AbstractSplitter<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
QuadraticSplitter
,RStarSplitter
public abstract class AbstractSplitter<T> extends Object
holds implementations of several ways to determine the best node to follow for insertion in the R-Tree- Author:
- Tom Nelson
-
-
Constructor Summary
Constructors Constructor Description AbstractSplitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<Node<T>>
leastEnlargementThenAreaThenKids(InnerNode<T> nodeToSplit, Rectangle2D incoming)
least area enlargement followed by smallest area followed by fewest child nodesprotected Optional<Node<T>>
leastOverlapThenEnlargementThenAreaThenKids(InnerNode<T> nodeToSplit, Rectangle2D bounds)
least overlap then least area enlargement followed by smallest area followed by fewest kids
-
-
-
Method Detail
-
leastEnlargementThenAreaThenKids
protected Optional<Node<T>> leastEnlargementThenAreaThenKids(InnerNode<T> nodeToSplit, Rectangle2D incoming)
least area enlargement followed by smallest area followed by fewest child nodes- Parameters:
nodeToSplit
- the node to splitincoming
- the bounds of the new element- Returns:
- the node to split
-
leastOverlapThenEnlargementThenAreaThenKids
protected Optional<Node<T>> leastOverlapThenEnlargementThenAreaThenKids(InnerNode<T> nodeToSplit, Rectangle2D bounds)
least overlap then least area enlargement followed by smallest area followed by fewest kids- Parameters:
nodeToSplit
- the node to splitbounds
- the rectangular bounds to split- Returns:
- the node that was selected to split
-
-