|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.folt.fuzzy.SQLMonoLingualPartitionedFuzzyNodeTree
public class SQLMonoLingualPartitionedFuzzyNodeTree
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 | |
|---|---|
SQLMonoLingualPartitionedFuzzyNodeTree()
|
|
| Method Summary | |
|---|---|
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<SQLMonoLingualObject> |
getFuzzyNodeTree(java.lang.String language)
getRoot returns a specific fuzzy Node tree |
int |
getIMaxIndex()
|
java.util.Hashtable<java.lang.String,StringPartitionedFuzzyNodeTree<SQLMonoLingualObject>> |
getLanguageNodeTrees()
|
int |
getNODESMATCHED()
|
int |
getNODESPUSHED()
|
int |
getNODESSEARCHED()
|
boolean |
insertFuzzyNode(SQLMonoLingualFuzzyNode fuzzyNodeToAdd)
insertFuzzyNode inserts a Fuzzy node into a partitioned fuzzy node tree; |
boolean |
remove(SQLMonoLingualObject sqlmono)
remove removes a SQLMonoLingualObject based on it stUniqueId |
boolean |
removeValue(SQLMonoLingualFuzzyNode 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,SQLMonoLingualObject>> |
search(SQLMonoLingualFuzzyNode fuzzyCompareKey,
int similarity)
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 SQLMonoLingualPartitionedFuzzyNodeTree()
| Method Detail |
|---|
public int countNodes()
public java.lang.String format()
public StringPartitionedFuzzyNodeTree<SQLMonoLingualObject> 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<SQLMonoLingualObject>> getLanguageNodeTrees()
public int getNODESMATCHED()
public int getNODESPUSHED()
public int getNODESSEARCHED()
public boolean insertFuzzyNode(SQLMonoLingualFuzzyNode fuzzyNodeToAdd)
fuzzyNodeToAdd - fuzzy node to insert
public boolean remove(SQLMonoLingualObject sqlmono)
sqlmono -
public boolean removeValue(SQLMonoLingualFuzzyNode fuzzyCompareKey)
fuzzyCompareKey - the key containing the value to remove
public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,SQLMonoLingualObject>> search(SQLMonoLingualFuzzyNode fuzzyCompareKey,
int similarity)
fuzzyCompareKey - the fuzzy node to search for with similaritysimilarity - the similarity to search for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||