DESERT 4.0.0
Uwpolling_NODE::BackOffTimer Class Reference

#include <uwpolling_NODE.h>

Inheritance diagram for Uwpolling_NODE::BackOffTimer:
Inheritance graph
Collaboration diagram for Uwpolling_NODE::BackOffTimer:
Collaboration graph

Public Member Functions

 BackOffTimer (Uwpolling_NODE *m)
 
virtual ~BackOffTimer ()
 
- Public Member Functions inherited from Uwpolling_NODE::Uwpolling_NODE_Timer
 Uwpolling_NODE_Timer (Uwpolling_NODE *m)
 
virtual ~Uwpolling_NODE_Timer ()
 
virtual void freeze ()
 
virtual void unFreeze ()
 
virtual void stop ()
 
virtual void schedule (double val)
 
bool isIdle ()
 
bool isRunning ()
 
bool isExpired ()
 
bool isFrozen ()
 
bool isActive ()
 
void resetCounter ()
 
void incrCounter ()
 
int getCounter ()
 
double getDuration ()
 

Protected Member Functions

virtual void expire (Event *e)
 

Additional Inherited Members

- Protected Attributes inherited from Uwpolling_NODE::Uwpolling_NODE_Timer
double start_time
 
double left_duration
 
int counter
 
Uwpolling_NODE *UWPOLLING_TIMER_STATUS timer_status
 

Detailed Description

Class (inherited from Uwpolling_NODE_Timer) used to handle the time of backoff of the node before transmitting the PROBE packet. After receiving a PROBE the node set this timer. When the timer expire, the node transmit the PROBE

Constructor & Destructor Documentation

◆ BackOffTimer()

Uwpolling_NODE::BackOffTimer::BackOffTimer ( Uwpolling_NODE m)
inline

Conscructor of ProbeTimer class

Parameters
Uwpolling_NODE*pointer to an object of type Uwpolling_NODE

◆ ~BackOffTimer()

virtual Uwpolling_NODE::BackOffTimer::~BackOffTimer ( )
inlinevirtual

Destructor of DataTimer class

Member Function Documentation

◆ expire()

void Uwpolling_NODE::BackOffTimer::expire ( Event *  e)
protectedvirtual

Method call when the timer expire

Parameters
Eevent*pointer to an object of type Event

References Uwpolling_NODE::Uwpolling_NODE_Timer::timer_status, and Uwpolling_NODE::UWPOLLING_EXPIRED.


The documentation for this class was generated from the following files: