DESERT 4.0.0
UWAloha::BackOffTimer Class Reference

#include <uwaloha.h>

Inheritance diagram for UWAloha::BackOffTimer:
Inheritance graph
Collaboration diagram for UWAloha::BackOffTimer:
Collaboration graph

Public Member Functions

 BackOffTimer (UWAloha *m)
 
virtual ~BackOffTimer ()
 
- Public Member Functions inherited from UWAloha::UWAlohaTimer
 UWAlohaTimer (UWAloha *m)
 
virtual ~UWAlohaTimer ()
 
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 UWAloha::UWAlohaTimer
double start_time
 
double left_duration
 
int counter
 
UWAloha *UWALOHA_TIMER_STATUS timer_status
 

Detailed Description

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

Constructor & Destructor Documentation

◆ BackOffTimer()

UWAloha::BackOffTimer::BackOffTimer ( UWAloha m)
inline

Constructor of BackOffTimer Class.

◆ ~BackOffTimer()

virtual UWAloha::BackOffTimer::~BackOffTimer ( )
inlinevirtual

Destructor of BackOffTimer.

Member Function Documentation

◆ expire()

void UWAloha::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: