|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.dir.master.selection.criteria.BestScoresCriterion
public class BestScoresCriterion
A criterion to select all collections with a score above a given threshold.
Constructor Summary | |
---|---|
BestScoresCriterion(float threshold)
Creates an instance with a given threshold. |
Method Summary | ||
---|---|---|
float |
getThreshold()
Returns the threshold. |
|
|
select(java.util.List<T> ranking)
Returns an ordered selection of a ranked list of content sources. |
|
void |
setThreshold(float threshold)
Sets the threshold. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BestScoresCriterion(float threshold)
threshold
- the threshold.Method Detail |
---|
public <T extends CollectionRank> java.util.List<CollectionRank> select(java.util.List<T> ranking)
select
in interface SelectionCriterion
public float getThreshold()
public void setThreshold(float threshold)
threshold.
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |