gate
Interface ProcessingResource

All Superinterfaces:
Executable, FeatureBearer, NameBearer, Resource, Serializable
All Known Subinterfaces:
ControllerAwarePR, Gazetteer, LanguageAnalyser, OntoGazetteer
All Known Implementing Classes:
AbstractController, AbstractCoreferencer, AbstractGazetteer, AbstractLanguageAnalyser, AbstractOntoGazetteer, AbstractProcessingResource, ANNIETransducer, AnnotationDeletePR, AnnotationSetTransfer, ConditionalSerialAnalyserController, ConditionalSerialController, Coreferencer, DefaultGazetteer, DefaultTokeniser, DumpingPR, DynamicRegistrationTest.TestResource, FlexibleGazetteer, GazetteerListsCollector, HashGazetteer, Morph, NominalCoref, OntoGazetteerImpl, OntologyAwareTransducer, OrthoMatcher, POSTagger, PronominalCoref, RealtimeCorpusController, RegexSentenceSplitter, SampleOrthoMatcher, SearchPR, SentenceSplitter, SerialAnalyserController, SerialController, SharedDefaultGazetteer, SimpleTokeniser, TestAnnotatedProcessingResource, TestSubclassProcessingResource, TestSuperclassProcessingResource, TestUnannotatedProcessingResource, Transducer, VPChunker

public interface ProcessingResource
extends Resource, Executable

Models all sorts of processing resources. Because run() doesn't throw exceptions, we have a check() that will re-throw any exception that was caught when run() was invoked.


Method Summary
 void reInit()
          Reinitialises the processing resource.
 
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
execute, interrupt, isInterrupted
 

Method Detail

reInit

void reInit()
            throws ResourceInstantiationException
Reinitialises the processing resource. After calling this method the resource should be in the state it is after calling init. If the resource depends on external resources (such as rules files) then the resource will re-read those resources. If the data used to create the resource has changed since the resource has been created then the resource will change too after calling reInit().

Throws:
ResourceInstantiationException