TopNCriterion
Date: 2013-02-16

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gcube.dir.master.selection.criteria
Class TopNCriterion

    java.lang.Object
      org.gcube.dir.master.selection.criteria.TopNCriterion

All Implemented Interfaces:
  SelectionCriterion

    public class TopNCriterion

extends java.lang.Object
implements SelectionCriterion

A criterion to select all collections below a given rank cutoff.

Author:
  Fabio Simeoni (University of Strathclyde)

Constructor Summary
`TopNCriterion(int cutOff)` Creates an instance with a give cutoff.

Method Summary
`
`<T extends CollectionRank> java.util.List<? extends CollectionRank>`
` | `select(java.util.List<T> ranking)` Returns an ordered selection of a ranked list of content sources.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TopNCriterion

    public TopNCriterion(int cutOff)

  Creates an instance with a give cutoff.

  Parameters:
    `cutOff` - the cutoff.

Method Detail

### select

    public <T extends CollectionRank> java.util.List<? extends CollectionRank> select(java.util.List<T> ranking)

  Returns an ordered selection of a ranked list of content sources.

  Specified by:
    `select` in interface `SelectionCriterion`
  Returns:
    the selection.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD