DESERT 4.0.0
MMacUWSR::BackOffTimer Class Reference

#include <uwsr.h>

Inheritance diagram for MMacUWSR::BackOffTimer:
Inheritance graph
Collaboration diagram for MMacUWSR::BackOffTimer:
Collaboration graph

Public Member Functions

 BackOffTimer (MMacUWSR *m)
 
virtual ~BackOffTimer ()
 
- Public Member Functions inherited from MMacUWSR::UWSRTimer
 UWSRTimer (MMacUWSR *m)
 
virtual ~UWSRTimer ()
 
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 ()
 
double leftDuration ()
 

Protected Member Functions

virtual void expire (Event *e)
 

Additional Inherited Members

- Protected Attributes inherited from MMacUWSR::UWSRTimer
double start_time
 
double left_duration
 
int counter
 
MMacUWSR *UWSR_TIMER_STATUS timer_status
 

Detailed Description

Base class of BackoffTimer. It is derived class of UWSRTimer.

Constructor & Destructor Documentation

◆ BackOffTimer()

MMacUWSR::BackOffTimer::BackOffTimer ( MMacUWSR m)
inline

Constructor of BackOffTimer Class.

◆ ~BackOffTimer()

virtual MMacUWSR::BackOffTimer::~BackOffTimer ( )
inlinevirtual

Destructor of BackOffTimer.

Member Function Documentation

◆ expire()

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

What a node is going to do when a timer expire.

Parameters
Event

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