|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.AbstractFeatureBearer | +--gate.creole.AbstractResource | +--gate.creole.AbstractController
Constructor Summary | |
AbstractController()
|
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()
Clears the internal data of the resource, when it gets released |
void |
execute()
Starts the execution of this executable |
String |
getName()
Returns the name of this resource |
List |
getOffendingPocessingResources()
Checks whether all the contained PRs have all the required runtime parameters set. |
Resource |
init()
Initialise this resource, and return it. |
void |
interrupt()
Notifies all the PRs in this controller that they should stop their execution as soon as possible. |
boolean |
isInterrupted()
Returns true if this executable has been interrupted via the interrupt() method since the last time its execute() method
was called |
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 |
void |
setName(String name)
Sets the name of this resource |
void |
setPRs(Collection PRs)
Populates this controller from a collection of ProcessingResource s
(optional operation). |
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 |
Methods inherited from interface gate.Resource |
getParameterValue, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Constructor Detail |
public AbstractController()
Method Detail |
public void execute() throws ExecutionException
execute
in interface Executable
ExecutionException
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractResource
ResourceInstantiationException
public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractResource
public void setPRs(Collection PRs)
ProcessingResource
s
(optional operation).
Controllers that are serializable must implement this method needed by GATE
to restore their contents.
setPRs
in interface Controller
UnsupportedOperationException
- if the setPRs method
is not supported by this controller.public void interrupt()
interrupt
in interface Executable
public boolean isInterrupted()
Executable
Executable.interrupt()
method since the last time its Executable.execute()
method
was called
isInterrupted
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.
public List getOffendingPocessingResources() throws ResourceInstantiationException
List
of ProcessingResource
s that have required
parameters with null values if they exist null otherwise.
ResourceInstantiationException
public void setName(String name)
setName
in interface NameBearer
setName
in class AbstractResource
public String getName()
getName
in interface NameBearer
getName
in class AbstractResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |