ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TokenBucketRateLimiter Class Reference

#include <rate-limit-strategy.h>

Inheritance diagram for TokenBucketRateLimiter:

RateLimiter List of all members.

Public Member Functions

 TokenBucketRateLimiter ()
int rateLimit (Packet *p, double estRate, double targetRate, int mine, int lowDemand)
void reset ()

Public Attributes

double bucket_depth_
double tbucket_
double time_last_token_
double total_passed_
double total_dropped_

Constructor & Destructor Documentation


Member Function Documentation

int TokenBucketRateLimiter::rateLimit Packet   p,
double    estRate,
double    targetRate,
int    mine,
int    lowDemand

Implements RateLimiter.

void TokenBucketRateLimiter::reset   [virtual]

Implements RateLimiter.

Member Data Documentation

double TokenBucketRateLimiter::bucket_depth_

double TokenBucketRateLimiter::tbucket_

double TokenBucketRateLimiter::time_last_token_

double TokenBucketRateLimiter::total_dropped_

double TokenBucketRateLimiter::total_passed_

The documentation for this class was generated from the following files:
This document is generated by doxygen.