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

#include <uwpolling_SINK.h>

Inheritance diagram for Uwpolling_SINK::BackOffTimer:
Collaboration diagram for Uwpolling_SINK::BackOffTimer:

Public Member Functions

 BackOffTimer (Uwpolling_SINK *m)
 
virtual ~BackOffTimer ()
 
- Public Member Functions inherited from Uwpolling_SINK::Uwpolling_SINK_Timer
 Uwpolling_SINK_Timer (Uwpolling_SINK *m)
 
virtual ~Uwpolling_SINK_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_SINK::Uwpolling_SINK_Timer
double start_time
 
double left_duration
 
int counter
 
Uwpolling_SINK *UWPOLLING_TIMER_STATUS timer_status
 

Detailed Description

Class (inherited from Uwpolling_SINK_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_SINK.h.

Constructor & Destructor Documentation

◆ BackOffTimer()

Uwpolling_SINK::BackOffTimer::BackOffTimer ( Uwpolling_SINK m)
inline

Conscructor of ProbeTimer class.

Parameters
Uwpolling_SINK*pointer to an object of type Uwpolling_SINK

Definition at line 342 of file uwpolling_SINK.h.

◆ ~BackOffTimer()

virtual Uwpolling_SINK::BackOffTimer::~BackOffTimer ( )
inlinevirtual

Destructor of DataTimer class.

Definition at line 350 of file uwpolling_SINK.h.

Member Function Documentation

◆ expire()

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

Method call when the timer expire.

Parameters
Eevent*pointer to an object of type Event

Definition at line 194 of file uwpolling_SINK.cpp.


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