diff --git a/src/mhtree/InsertType.java b/src/mhtree/InsertType.java index 9f39d13331078668ffa34523e92da89ab20cc430..b4bc8a8fd88f9dfd0e1ee111dd30433b6f96fc4b 100644 --- a/src/mhtree/InsertType.java +++ b/src/mhtree/InsertType.java @@ -1,6 +1,21 @@ package mhtree; +/** + * Specifies how should new objects be added to the MH-Tree. + */ public enum InsertType { + /** + * When inserted object is not covered by node, all objects under such node are retrieved and a new hull is build, + * replacing the current one. + */ GREEDY, + + /** + * When inserted object is not overed by node, we iterate over hull objects beginning with the nearest hull object. + * We try to replace existing hull object by replacing current hull object by inserted object + * and checking if the replaced hull objects is covered by the new hull. + * This is repeated until such hull object is found or if not, + * the inserted object is simply added as a new hull object. + */ INCREMENTAL, }