edu.uci.eecs.doc.clepsydra.tree
Class TextTreeWriter

java.lang.Object
  extended by edu.uci.eecs.doc.cascade.tree.AbstractTreeWriter
      extended by edu.uci.eecs.doc.cascade.tree.TextTreeWriter
          extended by edu.uci.eecs.doc.clepsydra.tree.TextTreeWriter
All Implemented Interfaces:
TreeWriter

public class TextTreeWriter
extends TextTreeWriter

Exports a control flow tree to plain text format. Each node in the tree is annotated with its WCET value.

Author:
Trevor Harmon

Field Summary
 
Fields inherited from class edu.uci.eecs.doc.cascade.tree.AbstractTreeWriter
showInstructions, trees
 
Constructor Summary
TextTreeWriter(Tree tree, TreeAnalysisStrategy analysisStrategy)
          Creates a new TextTreeWriter object for the given control flow tree.
 
Method Summary
protected  String toString(Node node)
           
 
Methods inherited from class edu.uci.eecs.doc.cascade.tree.TextTreeWriter
write
 
Methods inherited from class edu.uci.eecs.doc.cascade.tree.AbstractTreeWriter
setShowInstructions, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTreeWriter

public TextTreeWriter(Tree tree,
                      TreeAnalysisStrategy analysisStrategy)
Creates a new TextTreeWriter object for the given control flow tree.

Parameters:
tree - the control flow tree to be exported
analysisStrategy - a strategy for computing the WCET of each node in the tree
Method Detail

toString

protected String toString(Node node)
Overrides:
toString in class TextTreeWriter