|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.folt.fuzzy.FuzzyDataStructureElement<K,T>
de.folt.fuzzy.FuzzyNode<java.lang.String,T>
de.folt.fuzzy.StringFuzzyNode<T>
public class StringFuzzyNode<T>
This class implements a FuzzyNode and uses a String as the reference value for the key. The fuzzy key is computed from the given string.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.folt.fuzzy.FuzzyNode |
|---|
FuzzyNode.FUZZYNODESTATUS |
| Constructor Summary | |
|---|---|
StringFuzzyNode()
|
|
StringFuzzyNode(java.lang.String string,
T value)
|
|
StringFuzzyNode(java.lang.String string,
T value,
int iKeyLen)
|
|
| Method Summary | |
|---|---|
void |
remove(java.lang.Object value)
remove remove for a fuzzy node based on the value of a node and removes this value from the value list. |
boolean |
removeValue(java.lang.Object value)
removeValue removes a value from the value list of the values of the node |
java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> |
search(FuzzyNode<java.lang.String,T> fuzzyCompareKey,
int similarity)
search searches FuzzyNode and its sons with a given similarity and returns a Vector of matching keys. |
java.util.Vector<FuzzyNode<java.lang.String,T>> |
search(java.lang.Object value)
search search for a fuzzy node based on the value of a node |
java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> |
search(java.lang.String string,
int similarity)
|
java.lang.String |
shortFormat()
shortformat formats a FuzzyNode and returns a formatted string of the fuzzy node in a more compact way than format() |
| Methods inherited from class de.folt.fuzzy.FuzzyNode |
|---|
computeKeyDistance, countNodes, countSons, countValues, format, formatTree, formatTree, getDepth, getFuzzyNodeKey, getLeftSon, getMaxID, getNGram, getNodeID, getNODESMATCHED, getNODESPUSHED, getNODESSEARCHED, getRightSon, getStatus, getValues, iBalance, insertFuzzyNode, insertFuzzyNode, isAVLTree, isBInsertMode, removeValue, removeValue, setBInsertmode, setFuzzyNodeKey, setLeftSon, setMaxID, setNodeID, setRightSon, setStatus, setValues, updateFuzzyNode |
| 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 StringFuzzyNode()
public StringFuzzyNode(java.lang.String string,
T value)
string - the string for the FuzzyNodeKey construction.value - the value for the FuzzyNode
public StringFuzzyNode(java.lang.String string,
T value,
int iKeyLen)
string - the string for the FuzzyNodeKey constructionvalue - value the value for the FuzzyNodeiKeyLen - the key length for the FuzzyNodeKey| Method Detail |
|---|
public void remove(java.lang.Object value)
FuzzyNode
remove in class FuzzyNode<java.lang.String,T>public boolean removeValue(java.lang.Object value)
FuzzyNode
removeValue in class FuzzyNode<java.lang.String,T>value - the object to remove
public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(FuzzyNode<java.lang.String,T> fuzzyCompareKey,
int similarity)
FuzzyNode
search in class FuzzyNode<java.lang.String,T>fuzzyCompareKey - the node to search for in the current node and its sonssimilarity - the similarity in % (100% = perfect match)
public java.util.Vector<FuzzyNode<java.lang.String,T>> search(java.lang.Object value)
FuzzyNode
search in class FuzzyNode<java.lang.String,T>
public java.util.Vector<FuzzyNodeSearchResult<java.lang.String,T>> search(java.lang.String string,
int similarity)
public java.lang.String shortFormat()
FuzzyNode
shortFormat in class FuzzyNode<java.lang.String,T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||