|
||||||||||
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.AbstractController
gate.creole.SerialController
Execute a list of PRs serially.
Constructor Summary | |
SerialController()
|
Method Summary | |
void |
add(int index,
ProcessingResource pr)
|
void |
add(ProcessingResource pr)
|
void |
cleanup()
Cleans the internal data and prepares this object to be collected |
void |
datastoreClosed(CreoleEvent e)
Called when a DataStore has been closed |
void |
datastoreCreated(CreoleEvent e)
Called when a DataStore has been created |
void |
datastoreOpened(CreoleEvent e)
Called when a DataStore has been opened |
void |
execute()
Run the Processing Resources in sequence. |
Collection |
getPRs()
Returns all the ProcessingResource s contained by this
controller as an unmodifiable list. |
ProcessingResource |
remove(int index)
|
boolean |
remove(ProcessingResource pr)
|
void |
resourceLoaded(CreoleEvent e)
Called when a new Resource has been loaded into the system |
void |
resourceRenamed(Resource resource,
String oldName,
String newName)
Called when the creole register has renamed a resource.1 |
void |
resourceUnloaded(CreoleEvent e)
Called when a Resource has been removed from the system |
ProcessingResource |
set(int index,
ProcessingResource pr)
|
void |
setPRs(Collection prs)
Populates this controller from a collection of ProcessingResource s
(optional operation). |
Methods inherited from class gate.creole.AbstractController |
addProgressListener, addStatusListener, getName, getOffendingPocessingResources, 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.Resource |
getParameterValue, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Constructor Detail |
public SerialController()
Method Detail |
public Collection getPRs()
ProcessingResource
s contained by this
controller as an unmodifiable list.
getPRs
in interface Controller
public void setPRs(Collection prs)
ProcessingResource
s
(optional operation).
Controllers that are serializable must implement this method needed by GATE
to restore the contents of the controllers.
setPRs
in interface Controller
setPRs
in class AbstractController
UnsupportedOperationException
- if the setPRs method
is not supported by this controller.public void add(int index, ProcessingResource pr)
public void add(ProcessingResource pr)
public ProcessingResource remove(int index)
public boolean remove(ProcessingResource pr)
public ProcessingResource set(int index, ProcessingResource pr)
public void execute() throws ExecutionException
execute
in interface Executable
execute
in class AbstractController
ExecutionException
public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractController
public void resourceLoaded(CreoleEvent e)
CreoleListener
Resource
has been loaded into the system
resourceLoaded
in interface CreoleListener
public void resourceUnloaded(CreoleEvent e)
CreoleListener
Resource
has been removed from the system
resourceUnloaded
in interface CreoleListener
public void resourceRenamed(Resource resource, String oldName, String newName)
CreoleListener
resourceRenamed
in interface CreoleListener
public void datastoreOpened(CreoleEvent e)
CreoleListener
DataStore
has been opened
datastoreOpened
in interface CreoleListener
public void datastoreCreated(CreoleEvent e)
CreoleListener
DataStore
has been created
datastoreCreated
in interface CreoleListener
public void datastoreClosed(CreoleEvent e)
CreoleListener
DataStore
has been closed
datastoreClosed
in interface CreoleListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |