|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.folt.fuzzy.LanguagePartitionedFuzzyNodeTree<T>
public class LanguagePartitionedFuzzyNodeTree<T>
This class extends the class StringFuzzyNodeTree by adding an additional layer to the structure of the underlying tree.
For each language resulting from a MonoLingualObject a separate StringFuzzyTree is generated and stored in a ObservableHashtable.
Structure: [de] [en] [fr] .... [es] .... [it] (a hash table) | | | references the corresponding StringFuzzyTree for language es | references the corresponding StringFuzzyTreefor language de | (this references the StringFuzzyTree level) [0] [1] [2] .... [i] .... [n] (a hash table) | | references the root fuzzy node references the root fuzzy node with key sum 0 with key sum i
| Constructor Summary | |
|---|---|
LanguagePartitionedFuzzyNodeTree()
|
|
| Method Summary | |
|---|---|
boolean |
checkFuzzyNodeSearchThreadStatus()
checkFuzzyNodeSearchThreadStatus checks if a multi thread fuzzy node search has finished. |
int |
countNodes()
countNodes count all the nodes in the tree |
java.lang.String |
format()
format return a formated partitioned fuzzy tree based on the fuzzy nodes |
StringPartitionedFuzzyNodeTree<T> |
getFuzzyNodeTree(java.lang.String language)
getRoot returns a specific fuzzy Node tree |
int |
getIMaxIndex()
|
java.util.Hashtable<java.lang.String,StringPartitionedFuzzyNodeTree<T>> |
getLanguageNodeTrees()
|
int |
getNODESMATCHED()
|
int |
getNODESPUSHED()
|
int |
getNODESSEARCHED()
|
boolean |
insertFuzzyNode(StringFuzzyNode<T> fuzzyNodeToAdd,
java.lang.String language)
insertFuzzyNode inserts a Fuzzy node into a partitioned fuzzy node tree; |
boolean |
pushToFuzzyNodeSearchThread(FuzzyNode<java.lang.String,T> searchNode,
FuzzyNode<java.lang.String,T> fuzzyCompareKey,
int similarity)
pushToFuzzyNodeSearchThread if there a threads given the processor number available runs a search in a new thread |
java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> |
search(StringFuzzyNode<T> fuzzyCompareKey,
int similarity,
java.lang.String language)
search returns all a FuzzyNodeSearchResult of all matching FuzzyNodes |
| 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 |
|---|
public LanguagePartitionedFuzzyNodeTree()
| Method Detail |
|---|
public boolean checkFuzzyNodeSearchThreadStatus()
public int countNodes()
public java.lang.String format()
public StringPartitionedFuzzyNodeTree<T> getFuzzyNodeTree(java.lang.String language)
language - the language of the partitioned FuzzyTree to return
public int getIMaxIndex()
public java.util.Hashtable<java.lang.String,StringPartitionedFuzzyNodeTree<T>> getLanguageNodeTrees()
public int getNODESMATCHED()
public int getNODESPUSHED()
public int getNODESSEARCHED()
public boolean insertFuzzyNode(StringFuzzyNode<T> fuzzyNodeToAdd,
java.lang.String language)
fuzzyNodeToAdd - fuzzy node to insertlanguage - language of the node
public boolean pushToFuzzyNodeSearchThread(FuzzyNode<java.lang.String,T> searchNode,
FuzzyNode<java.lang.String,T> fuzzyCompareKey,
int similarity)
searchNode - the node to start search withfuzzyCompareKey - the key to compare againstsimilarity - the similarity used for the search
public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(StringFuzzyNode<T> fuzzyCompareKey,
int similarity,
java.lang.String language)
fuzzyCompareKey - the fuzzy node to search for with similaritysimilarity - the similarity to search forlanguage - language for the search
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||