at.dms.kjc
Class SimpleDot
java.lang.Object
at.dms.kjc.StreamItDot
at.dms.kjc.SimpleDot
- All Implemented Interfaces:
- AttributeStreamVisitor
public class SimpleDot
- extends StreamItDot
This class does the front-end processing to turn a Kopi compilation
unit into StreamIt classes, and then prints the class graph as a
dot file.
Method Summary |
String |
getClusterString(SIRStream self)
Prints out the subgraph cluser line that is needed in to make clusters. |
static void |
printGraph(SIRStream str)
Prints dot graph of |
static void |
printGraph(SIRStream str,
String filename)
Prints dot graph of |
Object |
visitFilter(SIRFilter self,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods,
JMethodDeclaration init,
JMethodDeclaration work,
CType inputType,
CType outputType)
|
Object |
visitJoiner(SIRJoiner self,
SIRJoinType type,
JExpression[] expWeights)
|
Object |
visitSplitter(SIRSplitter self,
SIRSplitType type,
JExpression[] expWeights)
|
Methods inherited from class at.dms.kjc.StreamItDot |
compile, getName, makeFilterLabel, makeLabelledNode, print, processWorkFunction, visitFeedbackLoop, visitPhasedFilter, visitPipeline, visitSplitJoin, visitStructure |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDot
public SimpleDot(PrintStream outputStream)
printGraph
public static void printGraph(SIRStream str)
- Prints dot graph of
str
to System.out
printGraph
public static void printGraph(SIRStream str,
String filename)
- Prints dot graph of
str
to filename
visitFilter
public Object visitFilter(SIRFilter self,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods,
JMethodDeclaration init,
JMethodDeclaration work,
CType inputType,
CType outputType)
- Specified by:
visitFilter
in interface AttributeStreamVisitor
- Overrides:
visitFilter
in class StreamItDot
visitSplitter
public Object visitSplitter(SIRSplitter self,
SIRSplitType type,
JExpression[] expWeights)
- Specified by:
visitSplitter
in interface AttributeStreamVisitor
- Overrides:
visitSplitter
in class StreamItDot
visitJoiner
public Object visitJoiner(SIRJoiner self,
SIRJoinType type,
JExpression[] expWeights)
- Specified by:
visitJoiner
in interface AttributeStreamVisitor
- Overrides:
visitJoiner
in class StreamItDot
getClusterString
public String getClusterString(SIRStream self)
- Prints out the subgraph cluser line that is needed in to make clusters. This method is overridden to make colored
pipelines and splitjoins in LinearDot.
- Overrides:
getClusterString
in class StreamItDot