org.gcube.dir.master.selection.rankers
Class CORIRanker

java.lang.Object
  extended by org.gcube.dir.master.selection.rankers.CORIRanker
All Implemented Interfaces:
Prototyped<SelectionParameters>, Ranker<SelectionParameters,CollectionRank>

public class CORIRanker
extends java.lang.Object
implements Ranker<SelectionParameters,CollectionRank>, Prototyped<SelectionParameters>

A Ranker implementation based on the CORI algorithm. It assumes DefaultQueries an IndexManager which returns DefaultTerms.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
CORIRanker()
           
 
Method Summary
 SelectionParameters getPrototype()
          Returns the object's prototypical input.
 java.util.List<CollectionRank> rank(SelectionParameters params, CollectionSet set)
          Ranks the collections in a CollectionSet in accordance with given selection parameters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CORIRanker

public CORIRanker()
Method Detail

rank

public java.util.List<CollectionRank> rank(SelectionParameters params,
                                           CollectionSet set)
                                    throws java.lang.Exception
Ranks the collections in a CollectionSet in accordance with given selection parameters.

Specified by:
rank in interface Ranker<SelectionParameters,CollectionRank>
Parameters:
params - the parameters.
Returns:
the ranked collections.
Throws:
java.lang.Exception - if the collections could not be ranked.

getPrototype

public SelectionParameters getPrototype()
Returns the object's prototypical input.

Specified by:
getPrototype in interface Prototyped<SelectionParameters>
Returns:
the prototype.