anl.aida.client.net
Class OccurrenceFilterCreator

java.lang.Object
  extended by anl.aida.client.net.OccurrenceFilterCreator
All Implemented Interfaces:
TSFilterCreator

public class OccurrenceFilterCreator
extends java.lang.Object
implements TSFilterCreator

Creates an OccurrenceFilter.


Constructor Summary
OccurrenceFilterCreator()
           
 
Method Summary
 anl.aida.score.TermScoreFilter createFilter(CacheElement element, float val)
          Creates a TermScoreFilter using the element and val.
 java.lang.String getLabel()
          Gets a label for this creator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OccurrenceFilterCreator

public OccurrenceFilterCreator()
Method Detail

getLabel

public java.lang.String getLabel()
Gets a label for this creator.

Specified by:
getLabel in interface TSFilterCreator
Returns:

createFilter

public anl.aida.score.TermScoreFilter createFilter(CacheElement element,
                                                   float val)
Creates a TermScoreFilter using the element and val.

Specified by:
createFilter in interface TSFilterCreator
Parameters:
element - the element to use -- getSTC etc from
val - a value to use (e.g. threshold).
Returns:
the created TermScoreFilter