streamit.scheduler2.base
Interface StreamFactory

All Known Subinterfaces:
StreamFactory
All Known Implementing Classes:
ConstrainedStreamFactory, StreamFactory, StreamFactory

public interface StreamFactory

The StreamFactory interface provides a factory interface for the scheduler. Since it is the streams themselves that calculate their schedules, the base.Stream class will be overwritten many times, and the factory will provide a way for the user to request an arbitrary arrangement of different Stream scheduling algorithms.

Version:
2
Author:
Michal Karczmarek

Method Summary
 boolean needsSchedule()
          Whether a schedule should be computed for objects created by this factory.
 StreamInterface newFrom(Iterator streamIter, Iterator parent)
          Given an iterator, create an appropriate stream out of it.
 

Method Detail

newFrom

StreamInterface newFrom(Iterator streamIter,
                        Iterator parent)
Given an iterator, create an appropriate stream out of it.

Returns:
A stream corresponding to streamIter

needsSchedule

boolean needsSchedule()
Whether a schedule should be computed for objects created by this factory. For example, graphs constructed for SDEP calculations do not rely on a schedule.