|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.slicegraph.Edge
public class Edge
An Edge connects two SliceNode
s.
Edges can be differentiated into InterSliceEdge
s that connect the OutputSliceNode of a slice
and the InputSliceNode of a slice, and
Intra-Slice Edgesthat connect two SliceNodes in the same slice. TODO: Warning Edge is currently used as a key for Channel, but sophisticated graph optimizations remove SIRIdentity filters, and remove redundant adjacent edges. A RR(1) splitter connected to a RR(1) joiner in a slice graph could represent an identity operation, but could also represent a permutation operation (e.g. by having the first output of the splitter connect to the second input of the joiner, and the second output of the splitter connect to the first input of the joiner). Our optimizations would change this permutation to an identity. Luckily this sort of permutation is impossible in the SIR graph, and is not introduced by any current optimization on the slice graph.
Field Summary | |
---|---|
protected SliceNode |
dest
Destination of directed edge in Slice graph |
protected SliceNode |
src
Source of directed edge in Slice graph |
Constructor Summary | |
---|---|
protected |
Edge()
Partial constructor, for subclasses. |
|
Edge(InputSliceNode dest)
|
|
Edge(OutputSliceNode src)
|
|
Edge(SliceNode src,
SliceNode dest)
Full constructor, (type will be inferred from src / dest). |
Method Summary | |
---|---|
SliceNode |
getDest()
|
SliceNode |
getSrc()
|
CType |
getType()
|
void |
setDest(SliceNode dest)
Set the destination SliceNode |
void |
setSrc(SliceNode src)
Set the source SliceNode |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SliceNode src
protected SliceNode dest
Constructor Detail |
---|
public Edge(SliceNode src, SliceNode dest)
src
- Source assumed to be an OutputSliceNode or a FilterSliceNode.dest
- Dest assumed to be an InputSliceNode or a FilterSliceNode.protected Edge()
public Edge(OutputSliceNode src)
public Edge(InputSliceNode dest)
Method Detail |
---|
public SliceNode getSrc()
public CType getType()
public SliceNode getDest()
public void setSrc(SliceNode src)
src
- public void setDest(SliceNode dest)
dest
- public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |