|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.cluster.RegisterStreams
public class RegisterStreams
Constructs a list of input and output tapes for each stream operator. Stores this information in static fields and provides static access methods. Needs to be run after NodeEnumerator, after ClusterFusion.fusedWith data is set up, and after StaticSubgraph data is set up. TODO: would be nice to create a Tape only once rather than twice.
Constructor Summary | |
---|---|
RegisterStreams()
|
Method Summary | |
---|---|
static Tape |
getFilterInStream(SIROperator filter)
Return a Tape that represents input tape for a filter no side effects. |
static Tape |
getFilterOutStream(SIROperator filter)
Return a Tape that represents output tape for a filter no side effects |
static List<Tape> |
getNodeInStreams(SIROperator op)
Return a Vector containing input tapes as Tape objects. |
static List<Tape> |
getNodeOutStreams(SIROperator op)
Return a Vector containing output tapes as Tape objects 0-weight (splitter) edges are represented as null. |
static void |
init(FlatNode top)
Set up Tape objects for all non-0-weight edges and set up vectors of edges (including nulls for 0-weight edges) for all incoming and outgoing edges for all filters, splitters, and joiners in graph. |
static void |
reset()
Clean up static data structures (also before using, to allocate) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegisterStreams()
Method Detail |
---|
public static void reset()
public static void init(FlatNode top)
first
- node in a flatgraphpublic static Tape getFilterInStream(SIROperator filter)
filter
- a SIROperator with at most one input tape
Tape
public static Tape getFilterOutStream(SIROperator filter)
filter
- a SIROperator with at most onr output tape
Tape
public static List<Tape> getNodeInStreams(SIROperator op)
op
- a SIROperator
Tape
public static List<Tape> getNodeOutStreams(SIROperator op)
op
- a SIROperator
Tape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |