ecologylab.semantics.connectors
Interface InfoCollector<C extends Container>

All Known Implementing Classes:
InfoCollectorBase

public interface InfoCollector<C extends Container>

Author:
andruid

Method Summary
 boolean accept(ecologylab.net.ParsedURL connectionPURL)
           
 void beginSeeding()
          Called to inform this that seeding is beginning.
 void clear()
           
 Document constructDocument(ecologylab.net.ParsedURL purl)
          Look-up MetaMetadata for this purl.
 DocumentParser<C,? extends InfoCollector,?> constructDocumentType(ecologylab.xml.ElementState inlineDoc)
           
 SeedPeer constructSeedPeer(Seed seed)
           
 SemanticActionHandler createSemanticActionHandler()
           
 void decreaseNumImageReferences()
           
 void displayStatus(java.lang.String message)
           
 void endSeeding()
          Called to inform this that seeding is complete.
 C getContainer(C ancestor, ecologylab.net.ParsedURL purl, boolean reincarnate, boolean addToCandidatesIfNeeded, MetaMetadata metaMetadata)
           
 C getContainerDownloadIfNeeded(C ancestor, ecologylab.net.ParsedURL purl, Seed seed, boolean dnd, boolean justCrawl, boolean justMedia)
           
 C getContainerForSearch(C ancestor, ecologylab.net.ParsedURL purl, Seed seed)
           
 C getContainerForSearch(C ancestor, ecologylab.net.ParsedURL purl, Seed seed, MetaMetadata metaMetadata)
           
 MetaMetadata getDocumentMM(ecologylab.net.ParsedURL purl)
           
 MetaMetadata getDocumentMM(ecologylab.net.ParsedURL purl, java.lang.String tagName)
           
 MetaMetadata getImageMM(ecologylab.net.ParsedURL purl)
           
 javax.swing.JFrame getJFrame()
           
 java.lang.Class<? extends InfoCollector>[] getMyClassArg()
           
 SeedDistributor getResultDistributer()
           
 SeedSet getSeedSet()
           
 java.lang.Object globalCollectionContainersLock()
           
 void increaseNumImageReferences()
           
 ecologylab.xml.TranslationScope inlineDocumentTranslations()
           
 void instantiateDocumentType(ecologylab.collections.Scope registry, java.lang.String key, SearchState searchState)
           
 C lookupAbstractContainer(ecologylab.net.ParsedURL connectionPURL)
           
 void mapContainerToPURL(ecologylab.net.ParsedURL purl, C container)
           
 MetaMetadataRepository metaMetaDataRepository()
           
 DocumentParser<C,? extends InfoCollector,?> newFileDirectoryType(java.io.File file)
           
 void reject(java.lang.String domain)
           
 void removeCandidateContainer(C candidate)
           
 ecologylab.collections.Scope sessionScope()
           
 void setCurrentFileFromUntitled(java.io.File file)
           
 void setPlayOnStart(boolean b)
           
 void trackFirstSeedSet(SeedSet seedSet)
           
 void traversable(ecologylab.net.ParsedURL url)
           
 void untraversable(ecologylab.net.ParsedURL url)
           
 

Method Detail

displayStatus

void displayStatus(java.lang.String message)

lookupAbstractContainer

C lookupAbstractContainer(ecologylab.net.ParsedURL connectionPURL)

globalCollectionContainersLock

java.lang.Object globalCollectionContainersLock()

mapContainerToPURL

void mapContainerToPURL(ecologylab.net.ParsedURL purl,
                        C container)

accept

boolean accept(ecologylab.net.ParsedURL connectionPURL)

metaMetaDataRepository

MetaMetadataRepository metaMetaDataRepository()

getDocumentMM

MetaMetadata getDocumentMM(ecologylab.net.ParsedURL purl,
                           java.lang.String tagName)

getDocumentMM

MetaMetadata getDocumentMM(ecologylab.net.ParsedURL purl)

getImageMM

MetaMetadata getImageMM(ecologylab.net.ParsedURL purl)

constructDocument

Document constructDocument(ecologylab.net.ParsedURL purl)
Look-up MetaMetadata for this purl. If there is no special MetaMetadata, use Document. Construct Metadata of the correct subtype, base on the MetaMetadata. Set its location field to purl.

Parameters:
purl -
Returns:

newFileDirectoryType

DocumentParser<C,? extends InfoCollector,?> newFileDirectoryType(java.io.File file)

getMyClassArg

java.lang.Class<? extends InfoCollector>[] getMyClassArg()

constructSeedPeer

SeedPeer constructSeedPeer(Seed seed)

trackFirstSeedSet

void trackFirstSeedSet(SeedSet seedSet)

setPlayOnStart

void setPlayOnStart(boolean b)

clear

void clear()

instantiateDocumentType

void instantiateDocumentType(ecologylab.collections.Scope registry,
                             java.lang.String key,
                             SearchState searchState)

reject

void reject(java.lang.String domain)

traversable

void traversable(ecologylab.net.ParsedURL url)

untraversable

void untraversable(ecologylab.net.ParsedURL url)

constructDocumentType

DocumentParser<C,? extends InfoCollector,?> constructDocumentType(ecologylab.xml.ElementState inlineDoc)

inlineDocumentTranslations

ecologylab.xml.TranslationScope inlineDocumentTranslations()

getContainerForSearch

C getContainerForSearch(C ancestor,
                        ecologylab.net.ParsedURL purl,
                        Seed seed)

getContainerForSearch

C getContainerForSearch(C ancestor,
                        ecologylab.net.ParsedURL purl,
                        Seed seed,
                        MetaMetadata metaMetadata)

getContainer

C getContainer(C ancestor,
               ecologylab.net.ParsedURL purl,
               boolean reincarnate,
               boolean addToCandidatesIfNeeded,
               MetaMetadata metaMetadata)

removeCandidateContainer

void removeCandidateContainer(C candidate)

sessionScope

ecologylab.collections.Scope sessionScope()

setCurrentFileFromUntitled

void setCurrentFileFromUntitled(java.io.File file)

increaseNumImageReferences

void increaseNumImageReferences()

decreaseNumImageReferences

void decreaseNumImageReferences()

beginSeeding

void beginSeeding()
Called to inform this that seeding is beginning.


endSeeding

void endSeeding()
Called to inform this that seeding is complete.


getSeedSet

SeedSet getSeedSet()

getResultDistributer

SeedDistributor getResultDistributer()

createSemanticActionHandler

SemanticActionHandler createSemanticActionHandler()

getJFrame

javax.swing.JFrame getJFrame()

getContainerDownloadIfNeeded

C getContainerDownloadIfNeeded(C ancestor,
                               ecologylab.net.ParsedURL purl,
                               Seed seed,
                               boolean dnd,
                               boolean justCrawl,
                               boolean justMedia)