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: 
 - Controller, CorpusController, ConditionalController, CreoleListener, Executable, Resource, FeatureBearer, NameBearer, Serializable, EventListener
 
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
 
 
 
 
 
 
 
 
 
 
 
 
| 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 | 
 
 
 
 
 
 
ConditionalSerialAnalyserController
public ConditionalSerialAnalyserController()
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
 LanguageAnalysers as components.
- Overrides:
 add in class 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.
 - 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