de.unidu.is.retrieval.pire.dt
Class YearDT

java.lang.Object
  extended byde.unidu.is.retrieval.pire.dt.AbstractDT
      extended byde.unidu.is.retrieval.pire.dt.NumberDT
          extended byde.unidu.is.retrieval.pire.dt.YearDT
All Implemented Interfaces:
DT

public class YearDT
extends NumberDT

A class for the IR datatype "year", containing the deterministic operators "<", "<=", ">", ">=" and the vague operators "~<", "~>" and "~=". The identity mapping function is used for the deterministic operators, a logistic function for the vague ones.

Since:
2003-09-23
Version:
$Revision: 1.7 $, $Date: 2005/02/21 17:29:26 $
Author:
Henrik Nottelmann

Field Summary
static java.lang.String EQ
          Operator name "=".
static java.lang.String EQUALS
          Operator name "=".
static java.lang.String GE
          operator name ">=".
static java.lang.String GT
          Operator name ">".
static java.lang.String LE
          Operator name "<=".
static java.lang.String LT
          Operator name "<".
static java.lang.String NAME
          The name of this datatype.
static java.lang.String VEQ
          Operator name "~=".
static java.lang.String VGT
          Operator name "~>".
static java.lang.String VLT
          Operator name "~<".
 
Constructor Summary
YearDT()
           
 
Method Summary
 java.util.Iterator getIndexTokens(Index index, java.lang.String operator)
          Returns an iterator over all tokens for whom the indexing weight moments have to be computed.
 
Methods inherited from class de.unidu.is.retrieval.pire.dt.NumberDT
addRSVRules, convertOperator, getFilter, getProbsTemplate, getQueryFilter, includesEqual, includesGreater, includesLess, isVague, storedRSVs
 
Methods inherited from class de.unidu.is.retrieval.pire.dt.AbstractDT
addProbRules, addToIndex, computeIndex, removeIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
The name of this datatype.

See Also:
Constant Field Values

EQUALS

public static final java.lang.String EQUALS
Operator name "=".

See Also:
Constant Field Values

EQ

public static final java.lang.String EQ
Operator name "=".

See Also:
Constant Field Values

LT

public static final java.lang.String LT
Operator name "<".

See Also:
Constant Field Values

LE

public static final java.lang.String LE
Operator name "<=".

See Also:
Constant Field Values

GT

public static final java.lang.String GT
Operator name ">".

See Also:
Constant Field Values

GE

public static final java.lang.String GE
operator name ">=".

See Also:
Constant Field Values

VEQ

public static final java.lang.String VEQ
Operator name "~=".

See Also:
Constant Field Values

VLT

public static final java.lang.String VLT
Operator name "~<".

See Also:
Constant Field Values

VGT

public static final java.lang.String VGT
Operator name "~>".

See Also:
Constant Field Values
Constructor Detail

YearDT

public YearDT()
Method Detail

getIndexTokens

public java.util.Iterator getIndexTokens(Index index,
                                         java.lang.String operator)
Description copied from class: AbstractDT
Returns an iterator over all tokens for whom the indexing weight moments have to be computed.

The default implementation returns null, specifying that all tokens which stored in the index should be used. Other implementations can override this behaviour. TODO: really useful?

Specified by:
getIndexTokens in interface DT
Overrides:
getIndexTokens in class NumberDT