|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.InfoObj | +--gov.nist.nlpir.irf.de.DeDouble
Representation of a double as a DataElem. This class will allow the use doubles as data elements, and to index them so that queries can take them into account. As this class is concrete, all abstract methods of DataElem are implemented here.
Field Summary | |
(package private) static long |
serialVersionUID
serial version universal id - put here so Java does not insert one which may change due to revisions and make it impossible to deserialize earlier versions of serialized objects |
private double |
value
The double this DeDouble represents. |
Constructor Summary | |
DeDouble(double v)
Builds a DeDouble that represents the given value. |
|
DeDouble(java.lang.String v)
Builds a DeDouble that represents the given value. |
Method Summary | |
void |
addHTML(java.lang.StringBuffer baseString,
int i,
boolean form)
Adds the value to the HTML text given. |
int |
compareTo(DataElem o)
Compares this DE-Double and the given DeDouble. |
boolean |
equals(java.lang.Object o)
Compares DeDoubles as compareTo(), but gives a boolean result. |
boolean |
exactMatch(DataElem de)
Compares this DeDouble to another. |
java.util.Vector |
getIndexingFeatures(ProxyDocument source,
IndexingModalities im,
DataElem field)
Extract indexing features from this data element according to the indexing modalities |
double |
getValue()
Returns the value of the represented double. |
java.lang.String |
getValueAsString()
Returns a string representation of the double |
int |
hashCode()
Redefines the default object.hashCode(). |
void |
HTML_ShowDoc(java.lang.StringBuffer baseString)
Appends the value to the given string in order to create an HTML doc. |
float |
match(DataElem de)
Matches the score of this DeDouble with another Object. |
void |
present()
Displays the represented value surrounded by spaces.. |
void |
presentBrief()
Same as present(), but with no space. |
void |
setValue(double v)
Sets the value of the represented double |
java.lang.String |
toString()
Returns string representation of the double |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final long serialVersionUID
private double value
Constructor Detail |
public DeDouble(double v)
v
- the value that the DeDouble will represent.public DeDouble(java.lang.String v)
v
- the value that the DeDouble will represent - starting with
a stringMethod Detail |
public final double getValue()
public final void setValue(double v)
v
- the new value the DeDouble represents.public void present()
public void presentBrief()
public float match(DataElem de)
de
- the DeDouble this is compared with.public boolean exactMatch(DataElem de)
de
- the DeDouble this is compared with.public java.util.Vector getIndexingFeatures(ProxyDocument source, IndexingModalities im, DataElem field)
s
- source document of data element.im
- indexing modalities of index in which data element will
be stored.field
- the document field from which this DE camepublic final java.lang.String getValueAsString()
public final java.lang.String toString()
public int compareTo(DataElem o)
o
- the DeDouble this is compared to.public boolean equals(java.lang.Object o)
o
- the DeDouble this is compared with.public int hashCode()
Hashtable
,
Object
public void addHTML(java.lang.StringBuffer baseString, int i, boolean form)
string
- the HTML text the value will be appended to.i
- unused.form
- unused.public void HTML_ShowDoc(java.lang.StringBuffer baseString)
baseString
- the string which the value is added to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |