DESERT 3.6.0
Loading...
Searching...
No Matches
CsmaAloha::ListenTimer Class Reference

#include <uw-csma-aloha.h>

Inheritance diagram for CsmaAloha::ListenTimer:
Collaboration diagram for CsmaAloha::ListenTimer:

Public Member Functions

 ListenTimer (CsmaAloha *m)
 
virtual ~ListenTimer ()=default
 
- Public Member Functions inherited from CsmaAloha::AlohaTimer
 AlohaTimer (CsmaAloha *m)
 
virtual ~AlohaTimer ()=default
 
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 () const
 
double getDuration () const
 

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 Listen Timer.

The duration of the timer is equal to the duration duration of the sense of the channel

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

Constructor & Destructor Documentation

◆ ListenTimer()

CsmaAloha::ListenTimer::ListenTimer ( CsmaAloha m)
inline

Conscructor of ListenTimer class.

Parameters
CsmaAloha*pointer to an object of type CsmaAloha

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

◆ ~ListenTimer()

virtual CsmaAloha::ListenTimer::~ListenTimer ( )
virtualdefault

Destructor of AckTimer class.

Member Function Documentation

◆ expire()

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

Method called when the timer expire.

Parameters
Eevent*pointer to an object of type Event

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


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