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