|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.uni_leipzig.bf.util.WeightedKeyword
public class WeightedKeyword
This class is a help class with objects composed of keyword and its weight for later retrieval. This weight should be between 0 and 1 inclusive.

| Constructor Summary | |
|---|---|
WeightedKeyword(java.lang.String _word,
double _weight)
Creates a new instance of WeightedKeyword |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getKeyword()
Get the actual value of keyword |
double |
getWeight()
Get the actual value of the weight |
boolean |
setWeight(double _weight)
Sets the weight of the keyword. |
java.lang.String |
toString()
Writes the keyword and the associated weight in a String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedKeyword(java.lang.String _word,
double _weight)
_word - Keyword_weight - Associated weight| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String getKeyword()
public double getWeight()
public boolean setWeight(double _weight)
_weight - New weight
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||