|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectISSearch.ISPeerResult
Sample class that implements the interface ISPeerResultInterface. This class represents the search result returned by the ISSearch search engine.
| Field Summary | |
private ISFeatureInterface[] |
features
The array of document-specific features. |
int |
id
The ID of this search result. |
private static int |
maxID
The max existing ID of search results. |
private double |
score
The relevance (rank) of the document in the context of given query. |
private String |
URL
The absolute URL of the documents as a String. |
| Constructor Summary | |
ISPeerResult()
|
|
| Method Summary | |
int |
compareTo(Object o)
This function is required for the interface Comparable that is implemented by this object. |
ISFeatureInterface[] |
getFeatures()
Returns the score (rank) of the document in the context of given query. |
double |
getScore()
Returns the relevance of the document. |
String |
getURL()
Returns the absolute URL of the documents as a String. |
void |
setFeatures(ISFeatureInterface[] f)
Sets the array of document features. |
void |
setScore(double s)
Sets the score (rank) of the document. |
void |
setURL(String u)
Sets the absolute URL of the document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int id
private static int maxID
private ISFeatureInterface[] features
ISFeatureInterface.
ISFeatureInterface,
ISFeatureprivate String URL
private double score
| Constructor Detail |
public ISPeerResult()
| Method Detail |
public ISFeatureInterface[] getFeatures()
getFeatures in interface ISPeerResultInterfaceISFeatureInterface,
ISFeaturepublic double getScore()
getScore in interface ISPeerResultInterfacepublic String getURL()
getURL in interface ISPeerResultInterfacepublic void setFeatures(ISFeatureInterface[] f)
f - The new array of document features.public void setURL(String u)
u - The absolute URL of the document as a String.public void setScore(double s)
s - The new score of the document as double value.public int compareTo(Object o)
compareTo in interface Comparableo - the Object to be compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||