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 protectedAbstractNode(MTree<T> mtree, T data) -
Method Summary
Modifier and Type Method Description voidaddChild(IndexItem<T> child, double distance)voidaddData(T data, double distance)intcheck()protected voidcheckDistanceToParent()voidcheckMinCapacity()protected voiddoAddData(T data, double distance)protected booleandoRemoveData(T data, double distance)java.util.Map<T,IndexItem<T>>getChildren()protected intgetMinCapacity()MTree<T>getMTree()booleanisMaxCapacityExceeded()booleanisNodeUnderCapacity()protected AbstractNode<T>newSplitNodeReplacement(T data)booleanremoveData(T data, double distance)Pair<AbstractNode<T>>splitNodes()voidupdateMetrics(IndexItem<T> child, double distance)voidupdateRadius(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:
checkDistanceToParentin classIndexItem<T>
-
getMTree
-