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

PushbackEvent Class Reference

#include <pushback.h>

Collaboration diagram for PushbackEvent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PushbackEvent (double delay, int eventID, RateLimitSession *rls)
 PushbackEvent (double delay, int eventID, int qid)
void setSucc (PushbackEvent *event)

Static Public Member Functions

char * type (PushbackEvent *event)

Public Attributes

double time_
int eventID_
RateLimitSessionrls_
int qid_
PushbackEventnext_

Constructor & Destructor Documentation

PushbackEvent::PushbackEvent double  delay,
int  eventID,
RateLimitSession rls
[inline]
 

Definition at line 144 of file pushback.h.

References Scheduler::clock(), eventID_, Scheduler::instance(), next_, qid_, rls_, and time_.

00144                                                                    {
00145     time_ = Scheduler::instance().clock() + delay;
00146     eventID_ = eventID;
00147     rls_ = rls;
00148     qid_= -1; //rls->localQID_;
00149     next_=NULL;
00150   }

Here is the call graph for this function:

PushbackEvent::PushbackEvent double  delay,
int  eventID,
int  qid
[inline]
 

Definition at line 152 of file pushback.h.

References Scheduler::clock(), eventID_, Scheduler::instance(), next_, qid_, rls_, and time_.

00152                                                     {
00153     time_ = Scheduler::instance().clock() + delay;
00154     eventID_ = eventID;
00155     rls_=NULL;
00156     qid_=qid;
00157     next_=NULL;
00158   }

Here is the call graph for this function:


Member Function Documentation

void PushbackEvent::setSucc PushbackEvent event  )  [inline]
 

Definition at line 160 of file pushback.h.

References next_.

Referenced by PushbackTimer::insert().

00160                                       {
00161     next_=event;
00162   }

char* PushbackEvent::type PushbackEvent event  )  [inline, static]
 

Definition at line 164 of file pushback.h.

References eventID_, INITIAL_UPDATE_EVENT, PUSHBACK_CHECK_EVENT, PUSHBACK_REFRESH_EVENT, and PUSHBACK_STATUS_EVENT.

Referenced by PushbackTimer::insert(), and PushbackAgent::timeout().

00164                                             {
00165     switch (event->eventID_) {
00166     case PUSHBACK_CHECK_EVENT: return "CHECK";
00167     case PUSHBACK_REFRESH_EVENT: return "REFRESH";
00168     case PUSHBACK_STATUS_EVENT: return "STATUS";
00169     case INITIAL_UPDATE_EVENT: return "INITIAL UPDATE";
00170     default: return "UNKNOWN";
00171     }
00172   }


Member Data Documentation

int PushbackEvent::eventID_
 

Definition at line 138 of file pushback.h.

Referenced by PushbackTimer::cancelStatus(), PushbackTimer::containsRefresh(), PushbackEvent(), and type().

PushbackEvent* PushbackEvent::next_
 

Definition at line 142 of file pushback.h.

Referenced by PushbackTimer::cancelStatus(), PushbackTimer::containsRefresh(), PushbackTimer::expire(), PushbackTimer::insert(), PushbackEvent(), PushbackTimer::removeEvents(), PushbackTimer::sanityCheck(), and setSucc().

int PushbackEvent::qid_
 

Definition at line 140 of file pushback.h.

Referenced by PushbackTimer::containsRefresh(), and PushbackEvent().

RateLimitSession* PushbackEvent::rls_
 

Definition at line 139 of file pushback.h.

Referenced by PushbackTimer::cancelStatus(), PushbackEvent(), and PushbackTimer::removeEvents().

double PushbackEvent::time_
 

Definition at line 137 of file pushback.h.

Referenced by PushbackTimer::insert(), PushbackEvent(), PushbackTimer::sanityCheck(), and PushbackTimer::schedule().


The documentation for this class was generated from the following file:
Generated on Tue Apr 20 13:09:20 2004 for NS2.26SourcesOriginal by doxygen 1.3.3