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

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.
 
Methods inherited from class gate.creole.ConditionalSerialController
add, cleanup, getRunningStrategies, remove, remove, setRunningStrategies, setRunningStrategy
 
Methods inherited from class gate.creole.SerialController
datastoreClosed, datastoreCreated, datastoreOpened, getPRs, resourceLoaded, resourceRenamed, resourceUnloaded, set, setPRs
 
Methods inherited from class gate.creole.AbstractController
addProgressListener, addStatusListener, 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
equals, getClass, hashCode, notify, notifyAll, 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
 

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
ExecutionException

add

public void add(ProcessingResource pr)
Overidden from SerialController to only allow LanguageAnalysers as components.

Overrides:
add in class ConditionalSerialController
Parameters:
pr - the PR to be added.

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.
ResourceInstantiationException