|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.client.net.ValueNode
anl.aida.client.net.TermNode
public class TermNode
A node in a concept graph.
Field Summary | |
---|---|
private java.util.Set<anl.aida.core.DocumentID> |
docs
|
private java.lang.String |
term
|
Constructor Summary | |
---|---|
TermNode(java.lang.String term)
|
Method Summary | |
---|---|
void |
addDocument(anl.aida.core.DocumentID doc)
Adds a document to this node. |
java.util.Set<anl.aida.core.DocumentID> |
documents()
Gets the documents associated with this node. |
int |
getDocumentCount()
Gets the number of documents associated with this node. |
void |
getDocuments(java.util.Collection<anl.aida.core.DocumentID> docs)
Gets the documents contained by this container and puts them in the specified collection. |
java.lang.String |
getLabel()
Gets the term associated with this TermNode. |
double |
getValue()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String term
private java.util.Set<anl.aida.core.DocumentID> docs
Constructor Detail |
---|
public TermNode(java.lang.String term)
Method Detail |
---|
public int getDocumentCount()
getDocumentCount
in interface DocumentContainer
public void addDocument(anl.aida.core.DocumentID doc)
doc
- the doc id of the document to add.public double getValue()
getValue
in class ValueNode
public java.util.Set<anl.aida.core.DocumentID> documents()
documents
in interface DocumentContainer
public void getDocuments(java.util.Collection<anl.aida.core.DocumentID> docs)
getDocuments
in interface DocumentContainer
docs
- the collection to add the documents topublic java.lang.String getLabel()
getLabel
in class ValueNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |