anl.aida.client
Class WrappedDocSet

java.lang.Object
  extended by anl.aida.client.WrappedDocSet
All Implemented Interfaces:
CacheDocumentSet

public class WrappedDocSet
extends java.lang.Object
implements CacheDocumentSet

CacheDocumentSet that delegates most of its methods to another wrapped DocumentSet.


Field Summary
private  DocumentsModel docsModel
           
private  DocSetID id
           
private  java.lang.String label
           
private  CacheDocumentSet set
           
 
Constructor Summary
WrappedDocSet(DocSetID id, java.lang.String label, CacheDocumentSet set)
           
 
Method Summary
 java.lang.Iterable<anl.aida.core.DocumentID> documents()
          Gets the document ids of all the docs this set contains.
 Clusterer<anl.aida.core.DocumentID> getClusterer()
          Gets the Clusterer that should be used to Cluster this document set.
 int getDocumentCount()
          Gets the number of documents in this CacheDocumentSet.
 DocumentsModel getDocumentsModel()
          Gets a DocumentsModel for the documents in this CacheDocumentSet.
 DocSetID getId()
          Gets the id of this document set.
 anl.aida.core.KeywordGenerator getKeyWordGenerator()
          Gets a keyword generator that can be used to generate keywords for this doc set.
 java.lang.String getLabel()
          Gets a descriptive label for this CacheDocumentSet.
 CacheElement getParent()
          Gets the CacheElement that is the parent of this CacheDocumentSet.
 anl.aida.core.ScoredTermsCollection getSTC()
          Gets the ScoredTermsCollection associated with this CacheDocumentSet.
 int getTermCount()
          Gets the number of terms in this CacheDocumentSet.
 java.lang.String getTimeStampAsString()
          Gets the timestamp of this CacheDocumentSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

set

private CacheDocumentSet set

id

private DocSetID id

label

private java.lang.String label

docsModel

private DocumentsModel docsModel
Constructor Detail

WrappedDocSet

public WrappedDocSet(DocSetID id,
                     java.lang.String label,
                     CacheDocumentSet set)
Method Detail

getLabel

public java.lang.String getLabel()
Gets a descriptive label for this CacheDocumentSet.

Specified by:
getLabel in interface CacheDocumentSet
Returns:
a descriptive label for this CacheDocumentSet.

getId

public DocSetID getId()
Gets the id of this document set.

Specified by:
getId in interface CacheDocumentSet
Returns:
the id of this document set.

getClusterer

public Clusterer<anl.aida.core.DocumentID> getClusterer()
Gets the Clusterer that should be used to Cluster this document set.

Specified by:
getClusterer in interface CacheDocumentSet
Returns:
the Clusterer that should be used to Cluster this document set.

getDocumentCount

public int getDocumentCount()
Gets the number of documents in this CacheDocumentSet.

Specified by:
getDocumentCount in interface CacheDocumentSet
Returns:
the number of documents in this CacheDocumentSet.

getTermCount

public int getTermCount()
Gets the number of terms in this CacheDocumentSet.

Specified by:
getTermCount in interface CacheDocumentSet
Returns:
the number of terms in this CacheDocumentSet.

getTimeStampAsString

public java.lang.String getTimeStampAsString()
Gets the timestamp of this CacheDocumentSet.

Specified by:
getTimeStampAsString in interface CacheDocumentSet
Returns:
the timestamp of this CacheDocumentSet.

getKeyWordGenerator

public anl.aida.core.KeywordGenerator getKeyWordGenerator()
Gets a keyword generator that can be used to generate keywords for this doc set.

Specified by:
getKeyWordGenerator in interface CacheDocumentSet
Returns:
a keyword generator that can be used to generate keywords for this doc set.

getSTC

public anl.aida.core.ScoredTermsCollection getSTC()
Gets the ScoredTermsCollection associated with this CacheDocumentSet.

Specified by:
getSTC in interface CacheDocumentSet
Returns:
the ScoredTermsCollection associated with this CacheDocumentSet.

documents

public java.lang.Iterable<anl.aida.core.DocumentID> documents()
Gets the document ids of all the docs this set contains.

Specified by:
documents in interface CacheDocumentSet
Returns:
the document ids of all the docs this set contains.

getDocumentsModel

public DocumentsModel getDocumentsModel()
Gets a DocumentsModel for the documents in this CacheDocumentSet.

Specified by:
getDocumentsModel in interface CacheDocumentSet
Returns:
a DocumentsModel for the documents in this CacheDocumentSet.

getParent

public CacheElement getParent()
Gets the CacheElement that is the parent of this CacheDocumentSet.

Specified by:
getParent in interface CacheDocumentSet
Returns:
the CacheElement that is the parent of this CacheDocumentSet.