Algorithm
Interface Pipeline

All Known Implementing Classes:
SimplePipeline

public interface Pipeline

Interface for a pipline. Pipelines store an ordered list of modules which are to executed in sequence in which they are entered. Step runs the pipeline once, that is it executes all modules in the order that they occur in the pipeline.


Method Summary
 void addModule(Module m)
          Adds a module to the pipeline
 Module getModule(int i)
          Gets module number i from the pipeline
 java.util.Collection<Module> getModules()
          Gets a Collection from the pipeline
 void step()
          Step through all the modules in the pipeline once
 

Method Detail

step

void step()
Step through all the modules in the pipeline once


addModule

void addModule(Module m)
Adds a module to the pipeline

Parameters:
m - Module to add

getModule

Module getModule(int i)
Gets module number i from the pipeline

Parameters:
i - Number of module to get from the pipeline
Returns:
A module from the pipeline

getModules

java.util.Collection<Module> getModules()
Gets a Collection from the pipeline

Returns:
the collection of modules in the pipeline