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

DumbPolicy Class Reference

#include <dsPolicy.h>

Inheritance diagram for DumbPolicy:

Inheritance graph
[legend]
Collaboration diagram for DumbPolicy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DumbPolicy ()
void applyMeter (policyTableEntry *policy, Packet *pkt)
int applyPolicer (policyTableEntry *policy, policerTableEntry *policer, Packet *pkt)

Constructor & Destructor Documentation

DumbPolicy::DumbPolicy  )  [inline]
 

Definition at line 137 of file dsPolicy.h.

00137 : Policy(){};


Member Function Documentation

void DumbPolicy::applyMeter policyTableEntry policy,
Packet pkt
[virtual]
 

Implements Policy.

Definition at line 508 of file dsPolicy.cc.

References policyTableEntry::arrivalTime, Scheduler::clock(), and Scheduler::instance().

00508                                                                  {
00509   policy->arrivalTime = Scheduler::instance().clock();  
00510 }

Here is the call graph for this function:

int DumbPolicy::applyPolicer policyTableEntry policy,
policerTableEntry policer,
Packet pkt
[virtual]
 

Implements Policy.

Definition at line 516 of file dsPolicy.cc.

References policerTableEntry::initialCodePt.

00516                                                                                               {
00517   return(policer->initialCodePt);
00518 }


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 12:44:49 2004 for NS2.26SourcesOriginal by doxygen 1.3.3