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
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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.
AbstractLanguageAnalyser
public AbstractLanguageAnalyser()
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.