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  

DEWPPolicy Class Reference

#include <dewp.h>

Inheritance diagram for DEWPPolicy:

Policy TclObject List of all members.

Public Member Functions

 DEWPPolicy ()
 ~DEWPPolicy ()
void init (double)
void applyMeter (policyTableEntry *policy, Packet *pkt)
int applyPolicer (policyTableEntry *policy, policerTableEntry *policer, Packet *pkt)
int dropPacket (Packet *)
void detect (Packet *pkt)
void couple (DEWPPolicy *)

Public Attributes

DEWPPolicy * cdewp
double dport_list [P_LEN]

Static Public Attributes

BPEntrybport_list = NULL

Private Attributes

double now

Static Private Attributes

double dt_inv_ = DT_INV
double beta = 0.5
double alpha = 0.125
int anum_th = 50

Constructor & Destructor Documentation



Member Function Documentation

void DEWPPolicy::applyMeter policyTableEntry   policy,
Packet   pkt

Implements Policy.

int DEWPPolicy::applyPolicer policyTableEntry   policy,
policerTableEntry   policer,
Packet   pkt

Implements Policy.

void DEWPPolicy::couple DEWPPolicy *   

void DEWPPolicy::detect Packet   pkt

int DEWPPolicy::dropPacket Packet  

void DEWPPolicy::init double   

Member Data Documentation

double DEWPPolicy::alpha = 0.125 [static, private]

int DEWPPolicy::anum_th = 50 [static, private]

double DEWPPolicy::beta = 0.5 [static, private]

BPEntry * DEWPPolicy::bport_list = NULL [static]

DEWPPolicy* DEWPPolicy::cdewp

double DEWPPolicy::dport_list[P_LEN]

double DEWPPolicy::dt_inv_ = DT_INV [static, private]

double DEWPPolicy::now [private]

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