|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.folt.fuzzy.SearchResult<K,T>
de.folt.fuzzy.FuzzyNodeSearchResult<K,T>
public class FuzzyNodeSearchResult<K,T>
This class represents the result of a fuzzy node search. It contains the reference to the fuzzy node which fulfilled the search criteria. distance is difference between the node found and the node searched. kleyDistance is the value computed based on the search similarity in % supplied; it represents the absolute key value of the similarity. If a string was search levenDistance contains the Levenshtein distance. This is actually an array of float numbers for each of the values of the fuzzy node. In addition it contains some statistical information: NODESMATCHED is the number of matching nodes, NOEDESSEACHED the number of nodes searched in the tree so far and NODESPUSHED the number of fuzzy nodes pushed onto the stack so far. SearchSimilarity is the similarity value which was used for the fuzzy search algorithm.
| Constructor Summary | |
|---|---|
FuzzyNodeSearchResult(float distance,
FuzzyNode<K,T> fuzzyNode)
Create a FuzzyNodeSearchResult for a given distance (fuzzy node key distance) and the matching fuzzy node |
|
FuzzyNodeSearchResult(float distance,
FuzzyNode<K,T> fuzzyNode,
int nodessearched,
int nodesmatched,
int nodespushed)
Create a FuzzyNodeSearchResult for a given distance (fuzzy node key distance) and the matching fuzzy node |
|
FuzzyNodeSearchResult(float distance,
int similarity,
float dist,
int difference,
FuzzyNode<K,T> fuzzyNode,
int nodessearched,
int nodesmatched,
int nodespushed)
Create a FuzzyNodeSearchResult for a given distance (fuzzy node key distance) and the matching fuzzy node |
|
| Method Summary | |
|---|---|
java.lang.String |
format()
format formats a FuzzyNodeResult |
float |
getDistance()
|
FuzzyNode<K,T> |
getFuzzyNode()
|
int |
getFuzzyNodedifference()
|
float |
getKeyDistance()
|
float[] |
getLevenDistance()
return the Levenshtein distances computed. |
int |
getNODESMATCHED()
|
int |
getNODESPUSHED()
|
int |
getNODESSEARCHED()
|
int |
getSearchSimilarity()
|
void |
setDistance(float distance)
|
void |
setFuzzyNode(FuzzyNode<K,T> fuzzyNode)
|
void |
setFuzzyNodedifference(int fuzzyNodedifference)
|
void |
setKeyDistance(float keyDistance)
|
void |
setLevenDistance(float[] levenDistance)
Sets the levenDistance of the result for each of the values of the result node. |
void |
setNODESMATCHED(int nodesmatched)
|
void |
setNODESPUSHED(int nodespushed)
|
void |
setNODESSEARCHED(int nodessearched)
|
void |
setSearchSimilarity(int searchSimilarity)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FuzzyNodeSearchResult(float distance,
FuzzyNode<K,T> fuzzyNode)
distance - the distance for the fuzzy node keysfuzzyNode - the fuzzy node matched
public FuzzyNodeSearchResult(float distance,
FuzzyNode<K,T> fuzzyNode,
int nodessearched,
int nodesmatched,
int nodespushed)
distance - the distance of the matchfuzzyNode - the matching fuzzy nodenodessearched - statistics: nodes searchednodesmatched - statistics: nodes matchednodespushed - statistics: nodes pushed
public FuzzyNodeSearchResult(float distance,
int similarity,
float dist,
int difference,
FuzzyNode<K,T> fuzzyNode,
int nodessearched,
int nodesmatched,
int nodespushed)
distance - the distance for the fuzzy node keyssimilarity - the similarity for the fuzzy node keysdist - the distance used for the keys searcheddifference - the fuzzy node differencefuzzyNode - the fuzzy node matchednodessearched - the number of nodes searchednodesmatched - the number of nodes matchesnodespushed - the number of nodes pushed| Method Detail |
|---|
public java.lang.String format()
public float getDistance()
public FuzzyNode<K,T> getFuzzyNode()
public int getFuzzyNodedifference()
public float getKeyDistance()
public float[] getLevenDistance()
public int getNODESMATCHED()
public int getNODESPUSHED()
public int getNODESSEARCHED()
public int getSearchSimilarity()
public void setDistance(float distance)
distance - the distance to setpublic void setFuzzyNode(FuzzyNode<K,T> fuzzyNode)
fuzzyNode - the fuzzyNode to setpublic void setFuzzyNodedifference(int fuzzyNodedifference)
fuzzyNodedifference - the fuzzyNodedifference to setpublic void setKeyDistance(float keyDistance)
keyDistance - the keyDistance to setpublic void setLevenDistance(float[] levenDistance)
levenDistance - the levenDistance to setpublic void setNODESMATCHED(int nodesmatched)
nodesmatched - the nODESMATCHED to setpublic void setNODESPUSHED(int nodespushed)
nodespushed - the nODESPUSHED to setpublic void setNODESSEARCHED(int nodessearched)
nodessearched - the nODESSEARCHED to setpublic void setSearchSimilarity(int searchSimilarity)
searchSimilarity - the searchSimilarity to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||