gate.creole
Class ConditionalSerialAnalyserController

java.lang.Object
  |
  +--gate.util.AbstractFeatureBearer
        |
        +--gate.creole.AbstractResource
              |
              +--gate.creole.AbstractController
                    |
                    +--gate.creole.SerialController
                          |
                          +--gate.creole.ConditionalSerialController
                                |
                                +--gate.creole.ConditionalSerialAnalyserController
All Implemented Interfaces:
ConditionalController, Controller, CorpusController, CreoleListener, EventListener, Executable, FeatureBearer, NameBearer, Resource, Serializable

public class ConditionalSerialAnalyserController
extends ConditionalSerialController
implements CorpusController

This class implements a SerialController that only contains LanguageAnalysers. It has a Corpus and its execute method runs all the analysers in turn over each of the documents in the corpus. This is a copy of the SerialAnalyserController, the only difference being that it inherits from ConditionalSerialController rather than from SerialController which makes it a conditional serial analyser controller.

See Also:
Serialized Form

Inner classes inherited from class gate.creole.AbstractController
AbstractController.InternalStatusListener, AbstractController.IntervalProgressListener
 
Field Summary
private  Corpus corpus
           
 
Fields inherited from class gate.creole.ConditionalSerialController
strategiesList
 
Fields inherited from class gate.creole.SerialController
prList, sListener
 
Fields inherited from class gate.creole.AbstractController
interrupted, name, progressListeners, statusListeners
 
Fields inherited from class gate.creole.AbstractResource
serialVersionUID
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Constructor Summary
ConditionalSerialAnalyserController()
           
 
Method Summary
 void add(ProcessingResource pr)
          Overidden from SerialController to only allow LanguageAnalysers as components.
 void execute()
          Run the Processing Resources in sequence.
 Corpus getCorpus()
          Returns the Corpus used by this controller.
 List getOffendingPocessingResources()
          Checks whether all the contained PRs have all the required runtime parameters set.
 void setCorpus(Corpus corpus)
          Sets the Corpus which contains the data on which the controller is going to run.
protected  void setDocToPrs(Document doc)
          Sets the current document to the memeber PRs
 
Methods inherited from class gate.creole.ConditionalSerialController
add, cleanup, getRunningStrategies, remove, remove, runComponent, setRunningStrategies, setRunningStrategy
 
Methods inherited from class gate.creole.SerialController
checkParameters, datastoreClosed, datastoreCreated, datastoreOpened, getPRs, resourceLoaded, resourceRenamed, resourceUnloaded, set, setPRs
 
Methods inherited from class gate.creole.AbstractController
addProgressListener, addStatusListener, fireProcessFinished, fireProgressChanged, fireStatusChanged, getName, init, interrupt, isInterrupted, removeProgressListener, removeStatusListener, setName
 
Methods inherited from class gate.creole.AbstractResource
checkParameterValues, getParameterValue, getParameterValue, removeResourceListeners, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners
 
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.Controller
getPRs, setPRs
 
Methods inherited from interface gate.Resource
cleanup, getParameterValue, init, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 
Methods inherited from interface gate.Executable
interrupt, isInterrupted
 

Field Detail

corpus

private Corpus corpus
Constructor Detail

ConditionalSerialAnalyserController

public ConditionalSerialAnalyserController()
Method Detail

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

add

public void add(ProcessingResource pr)
Overidden from SerialController to only allow LanguageAnalysers as components.
Overrides:
add in class ConditionalSerialController
Following copied from class: gate.creole.ConditionalSerialController
Parameters:
pr - the PR to be added.

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 ProcessingResources that have required parameters with null values if they exist null otherwise.