|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Controller
Models the execution of groups of ProcessingResources.
Method Summary | |
---|---|
void |
execute()
Executes this controller. |
Collection |
getPRs()
Returns all the ProcessingResource s contained by this
controller. |
void |
setPRs(Collection PRs)
Populates this controller from a collection of ProcessingResource s (optional operation). |
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 |
---|
interrupt, isInterrupted |
Method Detail |
---|
Collection getPRs()
ProcessingResource
s contained by this
controller. The actual type of collection returned depends on the
controller type.
void setPRs(Collection PRs)
ProcessingResource
s (optional operation).
Controllers that are serializable must implement this method needed
by GATE to restore their contents.
UnsupportedOperationException
- if the setPRs
method is not supported by this controller.void execute() throws ExecutionException
Executes this controller. Different controller implementations will provide different strategies for executing the PRs they contain, e.g. execute the PRs one after the other in sequence, execute them once for each document in a corpus, or in parallel, based on some condition, or in a branching workflow arrangement, etc.
If any of its child PRs implement the
ControllerAwarePR
interface, then the controller
must ensure that all their relevant methods are called at the
correct times. See the documentation for ControllerAwarePR
for details.
execute
in interface Executable
ExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |