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

HelloTimer Class Reference

#include <aodv.h>

Inheritance diagram for HelloTimer:

Inheritance graph
[legend]
Collaboration diagram for HelloTimer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HelloTimer (AODV *a)
void handle (Event *)

Private Attributes

AODVagent
Event intr

Constructor & Destructor Documentation

HelloTimer::HelloTimer AODV a  )  [inline]
 

Definition at line 140 of file aodv.h.

References agent.

00140 : agent(a) {}


Member Function Documentation

void HelloTimer::handle Event  )  [virtual]
 

Implements Handler.

Definition at line 160 of file aodv.cc.

References agent, Scheduler::instance(), intr, MaxHelloInterval, MinHelloInterval, Scheduler::schedule(), AODV::sendHello(), and Random::uniform().

Referenced by AODV::command().

00160                          {
00161    agent->sendHello();
00162    double interval = MinHelloInterval + 
00163                  ((MaxHelloInterval - MinHelloInterval) * Random::uniform());
00164    assert(interval >= 0);
00165    Scheduler::instance().schedule(this, &intr, interval);
00166 }

Here is the call graph for this function:


Member Data Documentation

AODV* HelloTimer::agent [private]
 

Definition at line 143 of file aodv.h.

Referenced by handle(), and HelloTimer().

Event HelloTimer::intr [private]
 

Definition at line 144 of file aodv.h.

Referenced by handle().


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