|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet
TextDatabase.KeywordTreeSet
TextDatabase.Document
public class Document
The Document is a tree set of keywords
Field Summary |
---|
Fields inherited from class TextDatabase.KeywordTreeSet |
---|
_mostPopularKeyword |
Constructor Summary | |
---|---|
Document(DocumentTreeSet DocumentTreeSet,
java.lang.String FileName)
Initializes the Document from a file |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object Obj)
Compares the Document to another document |
boolean |
equals(java.lang.Object Obj)
Checks if the Document is equal to another Document |
java.lang.String |
getFileName()
Gets the Document filename |
double |
getTermWeight(Keyword Keyword,
double InverseFrequency)
Get's the weight of a term for the specified document |
double |
getTermWeight(java.lang.String KeywordName,
double InverseFrequency)
Gets the weight of term for the specifeid document. |
java.lang.String |
getText()
Returns the document's filename contents |
boolean |
isRelevant(Query Query)
Checks if a document is relevant to a query by evaluating the keywords and the operands of the query |
void |
setFileName(java.lang.String FileName)
Sets the document's filename and keyword tree set |
java.lang.String |
toString()
Returns the documents filename |
java.util.Vector |
toVector()
Vectorizes the contents of the tree set |
Methods inherited from class TextDatabase.KeywordTreeSet |
---|
addKeyword, contains, getKeyword, getMostPopularKeywordFrequency, getNormalizedFrequency, getNormalizedFrequency |
Methods inherited from class java.util.TreeSet |
---|
add, addAll, clear, clone, comparator, contains, first, headSet, isEmpty, iterator, last, remove, size, subSet, tailSet |
Methods inherited from class java.util.AbstractSet |
---|
hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
containsAll, hashCode, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public Document(DocumentTreeSet DocumentTreeSet, java.lang.String FileName)
Method Detail |
---|
public java.lang.String getFileName()
public void setFileName(java.lang.String FileName)
public int compareTo(java.lang.Object Obj)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object Obj)
equals
in interface java.util.Collection
equals
in interface java.util.Set
equals
in class java.util.AbstractSet
public boolean isRelevant(Query Query)
public java.lang.String toString()
toString
in class java.util.AbstractCollection
public java.lang.String getText()
public java.util.Vector toVector()
public double getTermWeight(Keyword Keyword, double InverseFrequency)
public double getTermWeight(java.lang.String KeywordName, double InverseFrequency)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |