at.dms.kjc.spacedynamic
Class NumberGathering

java.lang.Object
  extended by at.dms.kjc.spacedynamic.NumberGathering

public class NumberGathering
extends Object

This class stores statistics needed to generate automatic performance statistics on the raw simulator. For each file writer, this class calculates how many items will be written for the init and for each steady-state.

Author:
mgordon

Field Summary
 HashSet<FlatNode> fileWriters
          the file writers of the application
 HashMap<FlatNode,Integer> index
          holds the index of each filewriter
 HashMap<FlatNode,Integer> skip
          holds the number of items each fw writes in init
 HashMap<FlatNode,Integer> steady
          holds the number of items each fw writes in steady state
 int totalSteadyItems
          total number of items written in init stage
 
Constructor Summary
NumberGathering()
           
 
Method Summary
 void doit(SpdStreamGraph streamGraph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileWriters

public HashSet<FlatNode> fileWriters
the file writers of the application


steady

public HashMap<FlatNode,Integer> steady
holds the number of items each fw writes in steady state


skip

public HashMap<FlatNode,Integer> skip
holds the number of items each fw writes in init


index

public HashMap<FlatNode,Integer> index
holds the index of each filewriter


totalSteadyItems

public int totalSteadyItems
total number of items written in init stage

Constructor Detail

NumberGathering

public NumberGathering()
Method Detail

doit

public void doit(SpdStreamGraph streamGraph)