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

Field Summary
protected  Corpus corpus
          The corpus property for this analyser.
protected  Document document
          The document property for this analyser.
protected  ExecutionException executionException
          Any exception caught during run() invocations are stored here.
 
Fields inherited from class gate.creole.AbstractResource
serialVersionUID
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, getName, setFeatures, setName
 

Field Detail

document

protected Document document
The document property for this analyser.

corpus

protected Corpus corpus
The corpus property for this analyser.

executionException

protected ExecutionException executionException
Any exception caught during run() invocations are stored here.
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.