Class AbstractNode<T>
java.lang.Object
kieker.analysis.generic.clustering.mtree.nodes.IndexItem<T>
kieker.analysis.generic.clustering.mtree.nodes.AbstractNode<T>
- Type Parameters:
T
- data element type
- Direct Known Subclasses:
InternalNode
,LeafNode
,RootLeafNode
,RootNode
public abstract class AbstractNode<T> extends IndexItem<T>
- Since:
- 2.0.0
- Author:
- Eduardo R. D'Avila
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNode(MTree<T> mtree, T data)
-
Method Summary
Modifier and Type Method Description void
addChild(IndexItem<T> child, double distance)
void
addData(T data, double distance)
int
check()
protected void
checkDistanceToParent()
void
checkMinCapacity()
protected void
doAddData(T data, double distance)
protected boolean
doRemoveData(T data, double distance)
java.util.Map<T,IndexItem<T>>
getChildren()
protected int
getMinCapacity()
MTree<T>
getMTree()
boolean
isMaxCapacityExceeded()
boolean
isNodeUnderCapacity()
protected AbstractNode<T>
newSplitNodeReplacement(T data)
boolean
removeData(T data, double distance)
Pair<AbstractNode<T>>
splitNodes()
void
updateMetrics(IndexItem<T> child, double distance)
void
updateRadius(IndexItem<T> child)
Methods inherited from class kieker.analysis.generic.clustering.mtree.nodes.IndexItem
getData, getDistanceToParent, getRadius, setDistanceToParent
-
Field Details
-
Constructor Details
-
Method Details
-
getChildren
-
addData
- Throws:
InternalErrorException
-
check
public int check() -
doAddData
- Throws:
InternalErrorException
-
doRemoveData
- Throws:
InternalErrorException
-
isMaxCapacityExceeded
- Throws:
InternalErrorException
-
splitNodes
- Throws:
InternalErrorException
-
newSplitNodeReplacement
-
addChild
- Throws:
InternalErrorException
-
removeData
- Throws:
InternalErrorException
-
isNodeUnderCapacity
- Throws:
InternalErrorException
-
getMinCapacity
- Throws:
InternalErrorException
-
updateMetrics
-
updateRadius
-
checkMinCapacity
public void checkMinCapacity() -
checkDistanceToParent
protected void checkDistanceToParent()- Overrides:
checkDistanceToParent
in classIndexItem<T>
-
getMTree
-