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.


Method Summary
 Collection getRunningStrategies()
          Gets the collection of running strategies for the contained PRs.
 void setRunningStrategies(Collection strategies)
          Populates this controller with the appropiate running strategies from a collection of running strategies (optional operation).
 
Methods inherited from interface gate.Controller
execute, getPRs, setPRs
 
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

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.