|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
A convenience implementation of ProcessingResource with some default code.
Field Summary |
Constructor Summary | |
AbstractProcessingResource()
|
Method Summary | |
void |
addProgressListener(ProgressListener l)
Adds a ProgressListener to the list of listeners for
this processing resource. |
void |
addStatusListener(StatusListener l)
Adds a StatusListener to the list of listeners for
this processing resource |
void |
cleanup()
should clear all internal data of the resource. |
void |
execute()
Run the resource. |
Resource |
init()
Initialise this resource, and return it. |
void |
interrupt()
Notifies this PR that it should stop its execution as soon as possible. |
boolean |
isInterrupted()
Checks whether this PR has been interrupted since the lsat time its execute() method was called. |
void |
reInit()
Reinitialises the processing resource. |
void |
removeProgressListener(ProgressListener l)
Removes a ProgressListener from the list of listeners
for this processing resource. |
void |
removeStatusListener(StatusListener l)
Removes a StatusListener from the list of listeners for
this processing resource |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, 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.Resource |
getParameterValue, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
getName, setName |
Constructor Detail |
public AbstractProcessingResource()
Method Detail |
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractResource
ResourceInstantiationException
public void execute() throws ExecutionException
execute
in interface Executable
ExecutionException
public void reInit() throws ResourceInstantiationException
init()
. This
functionality must be overriden by derived classes as necessary.
reInit
in interface ProcessingResource
ResourceInstantiationException
public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractResource
public boolean isInterrupted()
execute()
method was called.
isInterrupted
in interface Executable
public void interrupt()
interrupt
in interface Executable
public void removeStatusListener(StatusListener l)
StatusListener
from the list of listeners for
this processing resource
public void addStatusListener(StatusListener l)
StatusListener
to the list of listeners for
this processing resource
public void addProgressListener(ProgressListener l)
ProgressListener
to the list of listeners for
this processing resource.
public void removeProgressListener(ProgressListener l)
ProgressListener
from the list of listeners
for this processing resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |