|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.dir.master.selection.io.CollectionRank
public class CollectionRank
Represents the rank of a collection produced by some ranking algorithm.
| Constructor Summary | |
|---|---|
CollectionRank()
Creates an instance. |
|
CollectionRank(java.lang.String collectionID,
float score)
Creates an instance from a collection identifier and a score. |
|
| Method Summary | |
|---|---|
int |
compareTo(CollectionRank entry)
Compares this rank with another, based on score. |
ICollectionRank |
extern()
Returns the service output. |
java.lang.String |
getCollectionID()
Returns the identifier of the ranked collection. |
float |
getScore()
Returns the score of the ranked collection. |
void |
setCollectionID(java.lang.String collectionID)
Sets the identifier of the ranked collection |
void |
setScore(float score)
Sets the score of the ranked collection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionRank()
public CollectionRank(java.lang.String collectionID,
float score)
collectionID - the identifier.score - the score.| Method Detail |
|---|
public java.lang.String getCollectionID()
public void setCollectionID(java.lang.String collectionID)
collectionID - the identifier.public float getScore()
public void setScore(float score)
score - the score.public int compareTo(CollectionRank entry)
compareTo in interface java.lang.Comparable<CollectionRank>
public ICollectionRank extern()
throws java.lang.Exception
extern in interface ServiceOutputAdapter<ICollectionRank>java.lang.Exception - if this object could not be converted into a service output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||