protected static class DynamicIntervalTree.Node<U extends Comparable<U>,T extends Interval<U>> extends RedBlackTree.Node<T>
RedBlackTree.Node.NodeColor| Constructor and Description |
|---|
Node(T interval)
Construct a new node associated with the specified interval.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeSubtreeSpan()
Compute the maximum high and minimum low endpoints among intervals stored
within the subtree rooted at this node and correct values up the tree.
|
DynamicIntervalTree.Node<U,T> |
getLeft()
Get the left child.
|
DynamicIntervalTree.Node<U,T> |
getParent()
Get the parent.
|
DynamicIntervalTree.Node<U,T> |
getRight()
Get the right child.
|
U |
getSubtreeSpanHigh() |
U |
getSubtreeSpanLow() |
boolean |
isClosedOnSubtreeSpanHigh() |
boolean |
isClosedOnSubtreeSpanLow() |
public Node(T interval)
interval - the interval with which this node is associated.protected void computeSubtreeSpan()
public DynamicIntervalTree.Node<U,T> getLeft()
getLeft in class RedBlackTree.Node<T extends Interval<U>>public DynamicIntervalTree.Node<U,T> getParent()
getParent in class RedBlackTree.Node<T extends Interval<U>>public DynamicIntervalTree.Node<U,T> getRight()
getRight in class RedBlackTree.Node<T extends Interval<U>>public U getSubtreeSpanHigh()
public U getSubtreeSpanLow()
public boolean isClosedOnSubtreeSpanHigh()
public boolean isClosedOnSubtreeSpanLow()
Copyright © 2017. All rights reserved.