DESERT 3.5.1
Loading...
Searching...
No Matches
CsmaAloha::AckTimer Class Reference

#include <uw-csma-aloha.h>

Inheritance diagram for CsmaAloha::AckTimer:
Collaboration diagram for CsmaAloha::AckTimer:

Public Member Functions

 AckTimer (CsmaAloha *m)
 
virtual ~AckTimer ()
 
- Public Member Functions inherited from CsmaAloha::AlohaTimer
 AlohaTimer (CsmaAloha *m)
 
virtual ~AlohaTimer ()
 
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 CsmaAloha::AlohaTimer
double start_time
 
double left_duration
 
int counter
 
CsmaAloha *CSMA_TIMER_STATUS timer_status
 

Detailed Description

Class used to handle the timer for waiting the ACK.

Definition at line 377 of file uw-csma-aloha.h.

Constructor & Destructor Documentation

◆ AckTimer()

CsmaAloha::AckTimer::AckTimer ( CsmaAloha m)
inline

Conscructor of AckTimer class.

Parameters
CsmaAloha*pointer to an object of type CsmaAloha

Definition at line 384 of file uw-csma-aloha.h.

◆ ~AckTimer()

virtual CsmaAloha::AckTimer::~AckTimer ( )
inlinevirtual

Destructor of AckTimer class.

Definition at line 392 of file uw-csma-aloha.h.

Member Function Documentation

◆ expire()

void CsmaAloha::AckTimer::expire ( Event *  e)
protectedvirtual

Method called when the timer expire.

Parameters
Event*pointer to an object of type Event

Definition at line 74 of file uw-csma-aloha.cpp.


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