From f6c611f2b48d385bd5a85d170de8d5fe84ff00d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Proch=C3=A1zka?= <david@prochazka.dev> Date: Mon, 15 Mar 2021 16:18:58 +0100 Subject: [PATCH] ADD: insert type javadoc --- src/mhtree/InsertType.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mhtree/InsertType.java b/src/mhtree/InsertType.java index 9f39d13..b4bc8a8 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, } -- GitLab