tapestry.repairmonitor
Class GnutellaPDF

java.lang.Object
  |
  +--tapestry.repairmonitor.GnutellaPDF
All Implemented Interfaces:
CDF

public class GnutellaPDF
extends Object
implements CDF

Specifies a CDF and a PDF (kind of) for a Gnutella trace


Constructor Summary
GnutellaPDF()
           
 
Method Summary
 double getCDFEntry(int n)
          return the nth entry of the cumulative distribution function
 int getCDFIncrement()
          ASSUMPTION: assume this is only called once every cycle
 int getCDFSize()
          Returns the size of the cumulative distribution function
 boolean isNextStart()
          Is the next event a startup?
 void populate(String filename, int numNodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnutellaPDF

public GnutellaPDF()
Method Detail

populate

public void populate(String filename,
                     int numNodes)

getCDFEntry

public double getCDFEntry(int n)
Description copied from interface: CDF
return the nth entry of the cumulative distribution function

Specified by:
getCDFEntry in interface CDF

getCDFSize

public int getCDFSize()
Description copied from interface: CDF
Returns the size of the cumulative distribution function

Specified by:
getCDFSize in interface CDF

getCDFIncrement

public int getCDFIncrement()
ASSUMPTION: assume this is only called once every cycle

Specified by:
getCDFIncrement in interface CDF

isNextStart

public boolean isNextStart()
Is the next event a startup?