DESERT 4.0.0
uwUFetch_NODE::uwUFetch_BEACON_timer Class Reference

#include <uwUFetch_NODE.h>

Inheritance diagram for uwUFetch_NODE::uwUFetch_BEACON_timer:
Inheritance graph
Collaboration diagram for uwUFetch_NODE::uwUFetch_BEACON_timer:
Collaboration graph

Public Member Functions

 uwUFetch_BEACON_timer (uwUFetch_NODE *m)
 
virtual ~uwUFetch_BEACON_timer ()
 
- Public Member Functions inherited from uwUFetch_NODE::uwUFetch_NODE_timer
 uwUFetch_NODE_timer (uwUFetch_NODE *m)
 
virtual ~uwUFetch_NODE_timer ()
 
virtual void freeze ()
 
virtual void unFreeze ()
 
virtual void stop ()
 
virtual void schedule (double val)
 
bool isIdle ()
 
bool isRunning ()
 
bool isFroozen ()
 
bool isExpired ()
 
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 uwUFetch_NODE::uwUFetch_NODE_timer
double start_time
 
double left_duration
 
int counter
 
uwUFetch_NODE *UWUFETCH_TIMER_STATUS timer_status
 

Detailed Description

Timer associated to the HN. When the HN is in Idle state, before to start the procedure to transmit the BEACON packet, It wait a TRIGGER packet from the AUV for an interval time. In the case of reception of TRIGGGER packet, the communication between HN and AUV start, otherwise HN begin the communication with SN

Constructor & Destructor Documentation

◆ uwUFetch_BEACON_timer()

uwUFetch_NODE::uwUFetch_BEACON_timer::uwUFetch_BEACON_timer ( uwUFetch_NODE m)
inline

Constructor of uwUFetch_BEACON_timer class

Parameters
ma pointer to an object of type uwUFetch_NODE

◆ ~uwUFetch_BEACON_timer()

virtual uwUFetch_NODE::uwUFetch_BEACON_timer::~uwUFetch_BEACON_timer ( )
inlinevirtual

Member Function Documentation

◆ expire()

void uwUFetch_NODE::uwUFetch_BEACON_timer::expire ( Event *  e)
protectedvirtual

Method called when the timer expire

Parameters
Event*pointer to an object of type Event

References uwUFetch_NODE::uwUFetch_NODE_timer::timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_EXPIRED.


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