at.dms.kjc.spacedynamic
Class WorkEstimatesMap

java.lang.Object
  extended by at.dms.kjc.spacedynamic.WorkEstimatesMap
All Implemented Interfaces:
FlatVisitor

public class WorkEstimatesMap
extends Object
implements FlatVisitor


Constructor Summary
WorkEstimatesMap(SpdStreamGraph sg)
           
WorkEstimatesMap(SpdStreamGraph sg, FlatNode top)
           
 
Method Summary
 void addEstimate(FlatNode node)
           
 int getEstimate(FlatNode node)
           
 int getSteadyEstimate(FlatNode node)
          return the work estimate multiplied by the number of times the node executes in the steady state
 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

WorkEstimatesMap

public WorkEstimatesMap(SpdStreamGraph sg)

WorkEstimatesMap

public WorkEstimatesMap(SpdStreamGraph sg,
                        FlatNode top)
Method Detail

addEstimate

public void addEstimate(FlatNode node)

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.

getEstimate

public int getEstimate(FlatNode node)

getSteadyEstimate

public int getSteadyEstimate(FlatNode node)
return the work estimate multiplied by the number of times the node executes in the steady state