gate.creole
Interface ConditionalController
- All Superinterfaces:
- Controller, Executable, FeatureBearer, NameBearer, Resource, Serializable
- All Known Implementing Classes:
- ConditionalSerialAnalyserController, ConditionalSerialController
public interface ConditionalController
- extends Controller
A Conditional controller is a controller that keeps a running strategy for
each PR contained. The running strategy decides whether a particular PR will
be run or not.
getRunningStrategies
Collection getRunningStrategies()
- Gets the collection of running strategies for the contained PRs.
The iterator of this collection should return the running strategies in
sync with the iterator for the getPRs() method of
Controller
.
- Returns:
- a Collection object.
setRunningStrategies
void setRunningStrategies(Collection strategies)
- Populates this controller with the appropiate running strategies from a
collection of running strategies
(optional operation).
Controllers that are serializable must implement this method needed by GATE
to restore their contents.
- Throws:
UnsupportedOperationException
- if the setPRs method
is not supported by this controller.