DESERT 3.5.1
Loading...
Searching...
No Matches
Uwpolling_NODE::BackOffTimer Class Reference

#include <uwpolling_NODE.h>

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

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

Definition at line 335 of file uwpolling_NODE.h.

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

Definition at line 342 of file uwpolling_NODE.h.

◆ ~BackOffTimer()

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

Destructor of DataTimer class.

Definition at line 350 of file uwpolling_NODE.h.

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

Definition at line 76 of file uwpolling_NODE.cpp.


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