at.dms.kjc.flatgraph
Class SSGEdge

java.lang.Object
  extended by at.dms.kjc.flatgraph.SSGEdge

public class SSGEdge
extends Object

This class represents inter-SSG edges. Dynamic-rate edges between static-rate subgraphs (StaticStreamGraph). A there is only a single SSGEdge for a connection, shared by its upstream side and its downstream side. So, if upstream (resp. downstream) side sets upstreamNode (resp. downStreamNode) value, the downstream (resp. upstream) SSG will see it.

Author:
Mike Gordon

Method Summary
static SSGEdge createSSGEdge(StaticStreamGraph fromSSG, StaticStreamGraph toSSG, int from, int to)
          Create a new SSGEdge, or return an existing one with the same parameters.
 StaticStreamGraph getDownstream()
          the downstream SSG of edge
 int getDownstreamNum()
          get the index into the input array for the downstream SSG
 StaticStreamGraph getUpstream()
          the upstream SSG of edge
 int getUpstreamNum()
          get the index into the output array of the upstream SSG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSSGEdge

public static SSGEdge createSSGEdge(StaticStreamGraph fromSSG,
                                    StaticStreamGraph toSSG,
                                    int from,
                                    int to)
Create a new SSGEdge, or return an existing one with the same parameters.

Parameters:
fromSSG - upstream SSG
toSSG - dowmstream SSG
from - number of outgoing connection in upstream SSG
to - number of incoming connection in downstream SSG
Returns:
a SSGEdge.

getDownstreamNum

public int getDownstreamNum()
get the index into the input array for the downstream SSG


getUpstreamNum

public int getUpstreamNum()
get the index into the output array of the upstream SSG


getDownstream

public StaticStreamGraph getDownstream()
the downstream SSG of edge


getUpstream

public StaticStreamGraph getUpstream()
the upstream SSG of edge