DESERT 4.0.0
Uwpolling_AUV::DataTimer Class Reference

#include <uwpolling_AUV.h>

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

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

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

◆ ~DataTimer()

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

Destructor of DataTimer class

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

References Uwpolling_AUV::Uwpolling_AUV_Timer::timer_status, and Uwpolling_AUV::UWPOLLING_EXPIRED.


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