In this paper, a case study is carried out in comparison of pipes-and-filters architecture and batch sequential architecture. Concepts on a data flow system and the two mentioned architectures are presented. A Java template class design in implementing the "pipes" and "filters" in the pipes-and-filters architecture is given at the design level. Finally, this paper uses a concrete example to show how to use Java to implement the pipes- and-filters architecture. Using varied amount of data from text files, performance and memory usage of the two architectures are illustrated.
展开▼