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

SoftNeighborHandler Class Reference

#include <energy-model.h>

Inheritance diagram for SoftNeighborHandler:

Inheritance graph
[legend]
Collaboration diagram for SoftNeighborHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SoftNeighborHandler (EnergyModel *nid)
virtual void start ()
virtual void handle (Event *e)

Protected Attributes

EnergyModelnid_
Event intr

Constructor & Destructor Documentation

SoftNeighborHandler::SoftNeighborHandler EnergyModel nid  )  [inline]
 

Definition at line 77 of file energy-model.h.

References nid_.

00077                                               {
00078                 nid_ = nid;
00079         }


Member Function Documentation

void SoftNeighborHandler::handle Event e  )  [virtual]
 

Implements Handler.

Definition at line 216 of file energy-model.cc.

References CHECKFREQ, Scheduler::instance(), intr, nid_, EnergyModel::scan_neighbor(), and Scheduler::schedule().

00217 {
00218         Scheduler &s = Scheduler::instance();
00219         nid_->scan_neighbor();
00220         s.schedule(this, &intr, CHECKFREQ);
00221 }

Here is the call graph for this function:

void SoftNeighborHandler::start  )  [virtual]
 

Definition at line 211 of file energy-model.cc.

References CHECKFREQ, Scheduler::instance(), intr, and Scheduler::schedule().

Referenced by EnergyModel::start_powersaving().

00212 {
00213         Scheduler::instance().schedule(this, &intr, CHECKFREQ);
00214 }

Here is the call graph for this function:


Member Data Documentation

Event SoftNeighborHandler::intr [protected]
 

Definition at line 84 of file energy-model.h.

Referenced by handle(), and start().

EnergyModel* SoftNeighborHandler::nid_ [protected]
 

Definition at line 83 of file energy-model.h.

Referenced by handle(), and SoftNeighborHandler().


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