dragon.ir.index
Class IRDoc

java.lang.Object
  |
  +--dragon.ir.index.IRDoc
All Implemented Interfaces:
java.lang.Comparable, IndexSortable, java.io.Serializable, WeightSortable

public class IRDoc
extends java.lang.Object
implements WeightSortable, IndexSortable, java.lang.Comparable, java.io.Serializable

IRDoc is data structure for IR document indexing which can be sorted and thus compared by weight and index

Description:

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou
See Also:
Serialized Form

Constructor Summary
IRDoc(int index)
           
IRDoc(java.lang.String key)
           
 
Method Summary
 int compareTo(IRDoc doc)
           
 int compareTo(java.lang.Object obj)
           
 IRDoc copy()
           
 int getCategory()
           
 int getIndex()
           
 java.lang.String getKey()
           
 int getRelationCount()
           
 int getRelationNum()
           
 int getTermCount()
           
 int getTermNum()
           
 double getWeight()
           
 void setCategory(int category)
           
 void setIndex(int index)
           
 void setKey(java.lang.String key)
           
 void setRelationCount(int relationCount)
           
 void setRelationNum(int relationNum)
           
 void setTermCount(int termCount)
           
 void setTermNum(int termNum)
           
 void setWeight(double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IRDoc

public IRDoc(java.lang.String key)

IRDoc

public IRDoc(int index)
Method Detail

copy

public IRDoc copy()

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)

getCategory

public int getCategory()

setCategory

public void setCategory(int category)

getTermNum

public int getTermNum()

setTermNum

public void setTermNum(int termNum)

getTermCount

public int getTermCount()

setTermCount

public void setTermCount(int termCount)

getRelationNum

public int getRelationNum()

setRelationNum

public void setRelationNum(int relationNum)

getRelationCount

public int getRelationCount()

setRelationCount

public void setRelationCount(int relationCount)

getIndex

public int getIndex()
Specified by:
getIndex in interface IndexSortable

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface IndexSortable

setWeight

public void setWeight(double weight)
Specified by:
setWeight in interface WeightSortable

getWeight

public double getWeight()
Specified by:
getWeight in interface WeightSortable

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

compareTo

public int compareTo(IRDoc doc)