gate.creole
Class SerialAnalyserController
java.lang.Object
gate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractController
gate.creole.SerialController
gate.creole.SerialAnalyserController
- All Implemented Interfaces:
- Controller, CorpusController, CreoleListener, Executable, Resource, FeatureBearer, NameBearer, Serializable, EventListener
public class SerialAnalyserController
- extends SerialController
- implements CorpusController
This class implements a SerialController that only contains
LanguageAnalyser
s.
It has a Corpus
and its execute method runs all the analysers in
turn over each of the documents in the corpus.
- See Also:
- Serialized Form
Methods inherited from class gate.creole.SerialController |
add, checkParameters, cleanup, datastoreClosed, datastoreCreated, datastoreOpened, getPRs, remove, remove, resourceLoaded, resourceRenamed, runComponent, set, setPRs |
Methods inherited from class gate.creole.AbstractController |
addControllerListener, addProgressListener, addStatusListener, fireProcessFinished, fireProgressChanged, fireResourceAdded, fireResourceRemoved, fireStatusChanged, getName, init, interrupt, isInterrupted, removeControllerListener, removeProgressListener, removeStatusListener, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerialAnalyserController
public SerialAnalyserController()
getCorpus
public Corpus getCorpus()
- Description copied from interface:
CorpusController
- Returns the
Corpus
used by this
controller.
- Specified by:
getCorpus
in interface CorpusController
setCorpus
public void setCorpus(Corpus corpus)
- Description copied from interface:
CorpusController
- Sets the
Corpus
which contains the data on which
the controller is going to run.
- Specified by:
setCorpus
in interface CorpusController
execute
public void execute()
throws ExecutionException
- Run the Processing Resources in sequence.
- Specified by:
execute
in interface Executable
- Overrides:
execute
in class SerialController
- Throws:
ExecutionException
add
public void add(ProcessingResource pr)
- Overidden from
SerialController
to only allow
LanguageAnalyser
s as components.
- Overrides:
add
in class SerialController
setDocToPrs
protected void setDocToPrs(Document doc)
- Sets the current document to the memeber PRs
getOffendingPocessingResources
public List getOffendingPocessingResources()
throws ResourceInstantiationException
- Checks whether all the contained PRs have all the required runtime
parameters set. Ignores the corpus and document parameters as these will
be set at run time.
- Overrides:
getOffendingPocessingResources
in class AbstractController
- Returns:
- a
List
of ProcessingResource
s that have required
parameters with null values if they exist null otherwise.
- Throws:
{@link
- ResourceInstantiationException} if problems occur while
inspecting the parameters for one of the resources. These will normally be
introspection problems and are usually caused by the lack of a parameter
or of the read accessor for a parameter.
ResourceInstantiationException
resourceUnloaded
public void resourceUnloaded(CreoleEvent e)
- Overridden to also clean up the corpus value.
- Specified by:
resourceUnloaded
in interface CreoleListener
- Overrides:
resourceUnloaded
in class SerialController