public interface Controller extends Resource, Executable, NameBearer, FeatureBearer
|Modifier and Type||Method and Description|
Executes this controller.
Returns all the
Populates this controller from a collection of
cleanup, getParameterValue, init, setParameterValue, setParameterValues
ProcessingResources contained by this controller. The actual type of collection returned depends on the controller type.
void setPRs(Collection<? extends ProcessingResource> PRs)
ProcessingResources (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