|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.flatgraph.StreamGraph
public class StreamGraph
A representation of a FlatGraph as a collection of StaticStreamGraph. This class represents the entire stream graph of the application we are compiling. It is composed of StaticStreamGraphs. The StreamGraph / StaticSteam(sub)Graph representation was developed before SIRDynamicRateManager. In the future, try not to use this representation but instead use SIRDynamicRateManager to fake up disconnection of graph.
Field Summary | |
---|---|
HashMap<FlatNode,StaticStreamGraph> |
parentMap
map of flat nodes to parent ssg. |
protected StaticStreamGraph[] |
staticSubGraphs
A list of all the static sub graphs * |
Constructor Summary | |
---|---|
StreamGraph(FlatNode top)
Create the static stream graph for the application that has |
Method Summary | |
---|---|
void |
createStaticStreamGraphs()
This method creates the static subgraphs of the StreamGraph by cutting the stream graph at dynamic rate boundaries. |
void |
dumpStaticStreamGraph()
print out some stats on each SSG to STDOUT * |
boolean |
dynamicEntry(SIRStream stream)
Return true if the source of this stream, stream has dynamic rate input. |
boolean |
dynamicExit(SIRStream stream)
Return true if the sink of this stream, stream has dynamic rate output TODO: SIRDynamicRateManager |
StaticStreamGraph |
getParentSSG(FlatNode node)
get the parent SSG of |
StaticStreamGraph[] |
getStaticSubGraphs()
return the array of SSGs of this Stream Graph in no particular order |
StaticStreamGraph |
getTopLevel()
get the toplevel (source) SSG |
protected StaticStreamGraph |
new_StaticStreamGraph(StreamGraph sg,
FlatNode realTop)
Use in place of "new StaticStreamGraph" for subclassing. |
SIRStream |
recreateSIR()
The current version pastes together the topLevelSIR graphs for all StaticStreamGraphs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StaticStreamGraph[] staticSubGraphs
public HashMap<FlatNode,StaticStreamGraph> parentMap
Constructor Detail |
---|
public StreamGraph(FlatNode top)
topas the top level FlatNode.
top:
- the entry point of the FlatGraph, used to start the first StaticStreamGraph.Method Detail |
---|
protected StaticStreamGraph new_StaticStreamGraph(StreamGraph sg, FlatNode realTop)
sg
- a StreamGraphrealTop
- the top node
public void createStaticStreamGraphs()
public boolean dynamicEntry(SIRStream stream)
stream:
-
public boolean dynamicExit(SIRStream stream)
stream:
-
public StaticStreamGraph getParentSSG(FlatNode node)
node
node
- for which to find the contaiing StaticStreamGraph
public StaticStreamGraph[] getStaticSubGraphs()
public StaticStreamGraph getTopLevel()
public void dumpStaticStreamGraph()
public SIRStream recreateSIR()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |