gate.creole
Class AbstractLanguageAnalyser

java.lang.Object
  |
  +--gate.util.AbstractFeatureBearer
        |
        +--gate.creole.AbstractResource
              |
              +--gate.creole.AbstractProcessingResource
                    |
                    +--gate.creole.AbstractLanguageAnalyser
All Implemented Interfaces:
FeatureBearer, ProcessingResource, Resource, Runnable, Serializable

public abstract class AbstractLanguageAnalyser
extends AbstractProcessingResource

A parent implementation of language analysers with some default code.

See Also:
Serialized Form

Constructor Summary
AbstractLanguageAnalyser()
           
 
Method Summary
 void check()
          Trigger any exception that was caught when run() was invoked.
 Corpus getCorpus()
          Get the corpus property for this analyser.
 Document getDocument()
          Get the document property for this analyser.
 Resource init()
          Initialise this resource, and return it.
 void run()
          Run the resource.
 void setCorpus(Corpus corpus)
          Set the corpus property for this analyser.
 void setDocument(Document document)
          Set the document property for this analyser.
 
Methods inherited from class gate.creole.AbstractProcessingResource
reInit
 
Methods inherited from class gate.creole.AbstractResource
getName, setName
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, getName, setFeatures, setName
 

Constructor Detail

AbstractLanguageAnalyser

public AbstractLanguageAnalyser()
Method Detail

init

public Resource init()
              throws ResourceInstantiationException
Initialise this resource, and return it.
Overrides:
init in class AbstractProcessingResource

run

public void run()
Run the resource. It doesn't make sense not to override this in subclasses so the default implementation signals an exception.
Overrides:
run in class AbstractProcessingResource

check

public void check()
           throws ExecutionException
Trigger any exception that was caught when run() was invoked. If there is an exception stored it is cleared by this call.
Overrides:
check in class AbstractProcessingResource

setDocument

public void setDocument(Document document)
Set the document property for this analyser.

getDocument

public Document getDocument()
Get the document property for this analyser.

setCorpus

public void setCorpus(Corpus corpus)
Set the corpus property for this analyser.

getCorpus

public Corpus getCorpus()
Get the corpus property for this analyser.