de.hpi.fgis.dude.algorithm.duplicatedetection
Class DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder

java.lang.Object
  extended by de.hpi.fgis.dude.algorithm.duplicatedetection.DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder
Enclosing class:
DuplicateCountSNM

public static class DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder
extends Object

The AdaptiveWindowSizeSNM.AdaptiveWindowSizeSNMBuilder maintains the adaptable window size of the AdaptiveWindowSizeSNM.

Author:
Fabian Lindenberg

Constructor Summary
DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder(SortingKey sortingKey, DuplicateCountSNM.AdaptionMode adaptionMode)
          Initializes the AdaptiveWindowSizeSNM.AdaptiveWindowSizeSNMBuilder with a SortingKey and the mode that shall be used.
 
Method Summary
 DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder abortIncrease(boolean abortIncrease)
          Determines whether the continuous increase of the window size may be aborted.
 DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder abortThreshold(float abortThreshold)
          Sets the threshold for aborting the continuous increase of the window size.
 DuplicateCountSNM build()
          Initializes a AdaptiveWindowSizeSNM instance
 DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder increaseFactor(float factor)
          Sets the factor by which the window size will be multiplied.
 DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder increaseThreshold(float threshold)
          Sets the threshold for increasing the window size.
 DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder windowSize(int sz)
          Sets the size of the window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder

public DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder(SortingKey sortingKey,
                                                      DuplicateCountSNM.AdaptionMode adaptionMode)
Initializes the AdaptiveWindowSizeSNM.AdaptiveWindowSizeSNMBuilder with a SortingKey and the mode that shall be used.

Parameters:
sortingKey - The sorting key of this instance.
adaptionMode - The mode.
Method Detail

windowSize

public DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder windowSize(int sz)
Sets the size of the window.

Parameters:
sz - The window size. This value needs to be larger than one.
Returns:
Returns the current instance.

increaseThreshold

public DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder increaseThreshold(float threshold)
Sets the threshold for increasing the window size.

Parameters:
threshold - The threshold. This value needs to lie in the range (0,1].
Returns:
Returns the current instance.

increaseFactor

public DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder increaseFactor(float factor)
Sets the factor by which the window size will be multiplied.

Parameters:
factor - The factor by which the window size will be multiplied.
Returns:
Returns the current instance.

abortIncrease

public DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder abortIncrease(boolean abortIncrease)
Determines whether the continuous increase of the window size may be aborted.

Parameters:
abortIncrease - true, if the increase shall be aborted; otherwise false.
Returns:
Returns the current instance.

abortThreshold

public DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder abortThreshold(float abortThreshold)
Sets the threshold for aborting the continuous increase of the window size.

Parameters:
abortThreshold - The threshold. This value needs to lie in the range (0,1].
Returns:
Returns the current instance.

build

public DuplicateCountSNM build()
Initializes a AdaptiveWindowSizeSNM instance

Returns:
a AdaptiveWindowSizeSNM instance


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.