|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectResultElementBase
org.gcube.dir.master.fusion.results.BaseResult
org.gcube.dir.master.fusion.results.RankedResult
public class RankedResult
An extension of BaseResult which is associated with a score of relevance to
some Query. Based on the score, the results can be compared
and ranked during the application of some fusion algorithm).
| Constructor Summary | |
|---|---|
RankedResult()
|
|
| Method Summary | |
|---|---|
int |
compareTo(RankedResult r)
{@inheritDoc |
void |
fromXML(java.lang.String xml)
Builds an internal document from an XML representation of a result |
float |
getScore()
Returns the score of the result. |
void |
setScore(float score)
Sets the score of the result. |
void |
XMLserialise()
{@inheritDoc |
| Methods inherited from class org.gcube.dir.master.fusion.results.BaseResult |
|---|
toXML |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public RankedResult()
| Method Detail |
|---|
public void fromXML(java.lang.String xml)
throws java.lang.Exception
fromXML in class BaseResultXML - serialisation
java.lang.Exceptionpublic void XMLserialise()
XMLserialise in class BaseResultpublic int compareTo(RankedResult r)
public float getScore()
public void setScore(float score)
score - the score.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||