DESERT 3.5.1
Loading...
Searching...
No Matches
Uwpolling_AUV::DataTimer Class Reference

#include <uwpolling_AUV.h>

Inheritance diagram for Uwpolling_AUV::DataTimer:
Collaboration diagram for Uwpolling_AUV::DataTimer:

Public Member Functions

 DataTimer (Uwpolling_AUV *m)
 
virtual ~DataTimer ()
 
- Public Member Functions inherited from Uwpolling_AUV::Uwpolling_AUV_Timer
 Uwpolling_AUV_Timer (Uwpolling_AUV *m)
 
virtual ~Uwpolling_AUV_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_AUV::Uwpolling_AUV_Timer
double start_time
 
double left_duration
 
int counter
 
Uwpolling_AUV *UWPOLLING_TIMER_STATUS timer_status
 

Detailed Description

Class (inherited from Uwpolling_AUV_Timer) used to handle the timer of data packets When the AUV give the POLL packet to a node, he set up the timer in which the node has to transmit his packets.

The duration of the timer is calculated based on the RTT between the AUV and the node and the duration of the transmission of a packet

Definition at line 449 of file uwpolling_AUV.h.

Constructor & Destructor Documentation

◆ DataTimer()

Uwpolling_AUV::DataTimer::DataTimer ( Uwpolling_AUV m)
inline

Conscructor of DataTimer class.

Parameters
Uwpolling_AUV*pointer to an object of type Uwpolling_AUV

Definition at line 456 of file uwpolling_AUV.h.

◆ ~DataTimer()

virtual Uwpolling_AUV::DataTimer::~DataTimer ( )
inlinevirtual

Destructor of DataTimer class.

Definition at line 464 of file uwpolling_AUV.h.

Member Function Documentation

◆ expire()

void Uwpolling_AUV::DataTimer::expire ( Event *  e)
protectedvirtual

Method called when the timer expire.

Parameters
Event*pointer to an object of type Event

Definition at line 357 of file uwpolling_AUV.cpp.


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