SoftNeighborHandler Class Reference

#include <energy-model.h>

Inheritance diagram for SoftNeighborHandler:

Handler Collaboration diagram for SoftNeighborHandler:

Collaboration graph
[legend]

Detailed Description

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

Public Member Functions

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

Protected Attributes

Event intr
EnergyModelnid_


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 255 of file energy-model.cc.

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

00256 {
00257     Scheduler &s = Scheduler::instance();
00258     nid_->scan_neighbor();
00259     s.schedule(this, &intr, CHECKFREQ);
00260 }

Here is the call graph for this function:

void SoftNeighborHandler::start  )  [virtual]
 

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

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

Referenced by EnergyModel::start_powersaving().

00251 {
00252     Scheduler::instance().schedule(this, &intr, CHECKFREQ);
00253 }

Here is the call graph for this function:


Field 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 Mar 6 17:31:49 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6