BandwidthFilter Class Reference
[Filters]

#include <BandwidthFilter.h>

Inheritance diagram for BandwidthFilter:

Inheritance graph
[legend]
Collaboration diagram for BandwidthFilter:

Collaboration graph
[legend]

List of all members.


Detailed Description

Another filter for estimating bandwidth, but without fixed-size packets.

Unlike the AdolfoFilter, the BandwidthFilter does not assume fixed-size packets. Instead of the GenericFilter::update(double), it provides an update(int), and leaves the other to do awkward things.

Definition at line 66 of file BandwidthFilter.h.


Public Member Functions

void update (int size)
 adds size bytes at the current time to the estimator
void clear ()
 resets the filter to 0
double getValue ()
 computes and returns the bandwidth value in bits per second

Static Public Attributes

static const uint64_t BANDWIDTH_WINDOW = 2500000
 the window to estimate the bandwidth over in microseconds

The documentation for this class was generated from the following files:

Generated on Sat Oct 4 21:30:26 2008 for Mace Library by  doxygen 1.5.5