de.folt.fuzzy
Class StringPartitionedFuzzyNodeTree<T>

java.lang.Object
  extended by java.util.Observable
      extended by de.folt.fuzzy.PartitionedFuzzyNodeTree<java.lang.String,T>
          extended by de.folt.fuzzy.StringPartitionedFuzzyNodeTree<T>
All Implemented Interfaces:
java.io.Serializable

public class StringPartitionedFuzzyNodeTree<T>
extends PartitionedFuzzyNodeTree<java.lang.String,T>

This class Implements a partitioned string fuzzy node tree. For details FuzzyNodeTree

Author:
klemens
See Also:
Serialized Form

Constructor Summary
StringPartitionedFuzzyNodeTree()
           
 
Method Summary
 boolean insertFuzzyNode(FuzzyNode<java.lang.String,T> fuzzyNodeToAdd)
          insertFuzzyNode inserts a Fuzzy node into a partitioned fuzzy node tree;
 boolean insertFuzzyNode(StringFuzzyNode<T> fuzzyNodeToAdd)
          insertFuzzyNode inserts a String Fuzzy node into a partitioned fuzzy node tree;
static void main(java.lang.String[] args)
          main
 boolean removeValue(FuzzyNode<java.lang.String,T> fuzzyCompareKey)
          removeValue removes a value from the value list of the values of the node based on a key.
 java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(FuzzyNode<java.lang.String,T> fuzzyCompareKey, int similarity)
          search returns all a FuzzyNodeSearchResult of all matching FuzzyNodes
 java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(MonoLingualFuzzyNode fuzzyCompareKey, int similarity)
          search returns all a FuzzyNodeSearchResult of all matching MonoLingualFuzzyNodes
 java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(SQLMonoLingualFuzzyNode fuzzyCompareKey, int similarity)
          search
 java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(StringFuzzyNode<T> fuzzyCompareKey, int similarity)
          search returns all a FuzzyNodeSearchResult of all matching StringFuzzyNodes
 
Methods inherited from class de.folt.fuzzy.PartitionedFuzzyNodeTree
countNodes, format, getFuzzyNodeTree, getIMaxIndex, getNODESMATCHED, getNODESPUSHED, getNODESSEARCHED, getRoots
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPartitionedFuzzyNodeTree

public StringPartitionedFuzzyNodeTree()
Method Detail

main

public static void main(java.lang.String[] args)
main

Parameters:
args - 0 = number of strings to generate (default = 5) / 1 = length of string to generate (default = 20)

insertFuzzyNode

public boolean insertFuzzyNode(FuzzyNode<java.lang.String,T> fuzzyNodeToAdd)
Description copied from class: PartitionedFuzzyNodeTree
insertFuzzyNode inserts a Fuzzy node into a partitioned fuzzy node tree;

Overrides:
insertFuzzyNode in class PartitionedFuzzyNodeTree<java.lang.String,T>
Parameters:
fuzzyNodeToAdd - fuzzy node to insert
Returns:
true for success, false for failure

insertFuzzyNode

public boolean insertFuzzyNode(StringFuzzyNode<T> fuzzyNodeToAdd)
insertFuzzyNode inserts a String Fuzzy node into a partitioned fuzzy node tree;

Parameters:
fuzzyNodeToAdd - fuzzy node to insert
Returns:
true for success, false for failure

removeValue

public boolean removeValue(FuzzyNode<java.lang.String,T> fuzzyCompareKey)
removeValue removes a value from the value list of the values of the node based on a key. The values of the key are the objects to remove from the list

Overrides:
removeValue in class PartitionedFuzzyNodeTree<java.lang.String,T>
Parameters:
fuzzyCompareKey - the key containing the value to remove
Returns:
true when successfully removed, otherwise false

search

public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(FuzzyNode<java.lang.String,T> fuzzyCompareKey,
                                                                          int similarity)
Description copied from class: PartitionedFuzzyNodeTree
search returns all a FuzzyNodeSearchResult of all matching FuzzyNodes

Overrides:
search in class PartitionedFuzzyNodeTree<java.lang.String,T>
Parameters:
fuzzyCompareKey - the fuzzy node to search for with similarity
similarity - the similarity to search for
Returns:
a vector of FuzzyNodeSearchResult

search

public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(MonoLingualFuzzyNode fuzzyCompareKey,
                                                                          int similarity)
search returns all a FuzzyNodeSearchResult of all matching MonoLingualFuzzyNodes

Parameters:
fuzzyCompareKey - the fuzzy node to search for with similarity
similarity - the similarity to search for
Returns:
a vector of FuzzyNodeSearchResult

search

public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(SQLMonoLingualFuzzyNode fuzzyCompareKey,
                                                                          int similarity)
search

Parameters:
fuzzyCompareKey - the fuzzy node to search for with similarity
similarity - the similarity to search for
Returns:
a vector of FuzzyNodeSearchResult

search

public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(StringFuzzyNode<T> fuzzyCompareKey,
                                                                          int similarity)
search returns all a FuzzyNodeSearchResult of all matching StringFuzzyNodes

Parameters:
fuzzyCompareKey - the fuzzy node to search for with similarity
similarity - the similarity to search for
Returns:
a vector of FuzzyNodeSearchResult