anl.aida.core
Class MIFSDocument

java.lang.Object
  extended by anl.aida.core.MIFSDocument

public class MIFSDocument
extends java.lang.Object

Encapsulates Document info. MIFSDocument's are considered equal if they have the same path.


Field Summary
private  DocumentID id
           
private  java.lang.String title
           
 
Constructor Summary
MIFSDocument(int stcIndex, java.lang.String title, java.net.URL path)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 DocumentID getId()
           
 java.lang.String getPath()
          Gets the path of this document.
 int getSTCIndex()
          Gets the index of this document in its ScoredTermsCollection.
 java.lang.String getTitle()
          Gets the title of this document.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

private java.lang.String title

id

private DocumentID id
Constructor Detail

MIFSDocument

public MIFSDocument(int stcIndex,
                    java.lang.String title,
                    java.net.URL path)
Method Detail

getId

public DocumentID getId()

getSTCIndex

public int getSTCIndex()
Gets the index of this document in its ScoredTermsCollection.

Returns:
the index of this document in its ScoredTermsCollection.

getTitle

public java.lang.String getTitle()
Gets the title of this document.

Returns:
the title of this document.

getPath

public java.lang.String getPath()
Gets the path of this document.

Returns:
the path of this document.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object