at.dms.kjc.flatgraph
Class WorkSorted

java.lang.Object
  extended by at.dms.kjc.flatgraph.WorkSorted
All Implemented Interfaces:
FlatVisitor

public class WorkSorted
extends Object
implements FlatVisitor

Author:
mgordon No idea why this is in the at.dms.kjc.flatgraph except that it subclasses FlatVisitor

Constructor Summary
WorkSorted(WorkEstimate workEstimates)
           
 
Method Summary
static LinkedList<FlatNode> getSortedList(FlatNode top, WorkEstimate workEstimates)
           
 void visitNode(FlatNode node)
          The visitor must define this method that will be called once on each FlatNode that is down stream of the accepting node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkSorted

public WorkSorted(WorkEstimate workEstimates)
Method Detail

getSortedList

public static LinkedList<FlatNode> getSortedList(FlatNode top,
                                                 WorkEstimate workEstimates)

visitNode

public void visitNode(FlatNode node)
Description copied from interface: FlatVisitor
The visitor must define this method that will be called once on each FlatNode that is down stream of the accepting node.

Specified by:
visitNode in interface FlatVisitor
Parameters:
node - the node that is being currently visited.