anl.aida.client.net
Class TermNode

java.lang.Object
  extended by anl.aida.client.net.ValueNode
      extended by anl.aida.client.net.TermNode
All Implemented Interfaces:
DocumentContainer

public class TermNode
extends ValueNode
implements DocumentContainer

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

term

private java.lang.String term

docs

private java.util.Set<anl.aida.core.DocumentID> docs
Constructor Detail

TermNode

public TermNode(java.lang.String term)
Method Detail

getDocumentCount

public int getDocumentCount()
Gets the number of documents associated with this node.

Specified by:
getDocumentCount in interface DocumentContainer
Returns:
the number of documents associated with this node.

addDocument

public void addDocument(anl.aida.core.DocumentID doc)
Adds a document to this node.

Parameters:
doc - the doc id of the document to add.

getValue

public double getValue()
Overrides:
getValue in class ValueNode
Returns:
the value

documents

public java.util.Set<anl.aida.core.DocumentID> documents()
Gets the documents associated with this node.

Specified by:
documents in interface DocumentContainer
Returns:
the documents associated with this node.

getDocuments

public void getDocuments(java.util.Collection<anl.aida.core.DocumentID> docs)
Gets the documents contained by this container and puts them in the specified collection.

Specified by:
getDocuments in interface DocumentContainer
Parameters:
docs - the collection to add the documents to

getLabel

public java.lang.String getLabel()
Gets the term associated with this TermNode.

Overrides:
getLabel in class ValueNode
Returns:
the term associated with this TermNode.