DESERT 3.5.1
Loading...
Searching...
No Matches
Uwpolling_NODE Class Reference

#include <uwpolling_NODE.h>

Inheritance diagram for Uwpolling_NODE:
Collaboration diagram for Uwpolling_NODE:

Classes

class  BackOffTimer
 
class  Rx_Poll_Timer
 
class  Tx_Data_Timer
 
class  Uwpolling_NODE_Timer
 

Public Member Functions

 Uwpolling_NODE ()
 
virtual ~Uwpolling_NODE ()
 
virtual int command (int argc, const char *const *argv)
 
virtual int crLayCommand (ClMessage *m)
 

Protected Types

enum  UWPOLLING_NODE_STATUS {
  UWPOLLING_NODE_STATUS_IDLE = 1 , UWPOLLING_NODE_STATUS_RX_TRIGGER , UWPOLLING_NODE_STATUS_TX_PROBE , UWPOLLING_NODE_STATUS_RX_POLL ,
  UWPOLLING_NODE_STATUS_TX_DATA , UWPOLLING_NODE_STATUS_WAIT_POLL
}
 
enum  UWPOLLING_PKT_TYPE { UWPOLLING_DATA_PKT = 1 , UWPOLLING_POLL_PKT , UWPOLLING_TRIGGER_PKT , UWPOLLING_PROBE_PKT }
 
enum  UWPOLLING_NODE_REASON {
  UWPOLLING_NODE_REASON_TX_DATA , UWPOLLING_NODE_REASON_RX_TRIGGER , UWPOLLING_NODE_REASON_PKT_ERROR , UWPOLLING_NODE_REASON_TX_PROBE ,
  UWPOLLING_NODE_REASON_RX_POLL , UWPOLLING_NODE_REASON_BACKOFF_TIMER_EXPIRED , UWPOLLING_NODE_REASON_RX_POLL_TIMER_EXPIRED , UWPOLLING_NODE_REASON_NOT_SET ,
  UWPOLLING_NODE_REASON_EMPTY_DATA_QUEUE , UWPOLLING_NODE_REASON_WRONG_TYPE , UWPOLLING_NODE_REASON_WRONG_RECEIVER , UWPOLLING_NODE_REASON_WRONG_STATE ,
  UWPOLLING_NODE_REASON_NOT_IN_LIST , UWPOLLING_NODE_REASON_LIST_NOT_POLLED
}
 
enum  UWPOLLING_TIMER_STATUS { UWPOLLING_IDLE = 1 , UWPOLLING_RUNNING , UWPOLLING_FROZEN , UWPOLLING_EXPIRED }
 

Protected Member Functions

virtual void recvFromUpperLayers (Packet *p)
 
virtual void Mac2PhyStartTx (Packet *p)
 
virtual void Phy2MacEndTx (const Packet *p)
 
virtual void Phy2MacStartRx (const Packet *p)
 
virtual void Phy2MacEndRx (Packet *p)
 
virtual void initPkt (UWPOLLING_PKT_TYPE pkt_type)
 
virtual void initInfo ()
 
virtual void refreshReason (UWPOLLING_NODE_REASON reason)
 
virtual void refreshState (UWPOLLING_NODE_STATUS state)
 
virtual void incrProbeSent ()
 
virtual void incrTimesPolled ()
 
void incrTriggerReceived ()
 
void incrTriggerDropped ()
 
void incrPollDropped ()
 
void getDataQueueLog ()
 
int getProbeSent ()
 
int getTimesPolled ()
 
int getTriggerReceived ()
 
int getTriggerDropped ()
 
int getPollDropped ()
 
virtual void waitForUser ()
 
virtual void stateIdle ()
 
virtual void stateTxData ()
 
virtual void stateRxTrigger ()
 
virtual void stateTxProbe ()
 
virtual void stateRxPoll ()
 
virtual void BackOffTimerExpired ()
 
virtual void RxPollTimerExpired ()
 
virtual double getBackOffTime ()
 
virtual void TxData ()
 
virtual void TxPRobe ()
 
virtual void stateWaitPoll ()
 
unsigned long int getEpoch ()
 

Protected Attributes

double T_poll
 
double T_poll_guard
 
double backoff_tuner
 
int max_payload
 
int buffer_data_pkts
 
int max_data_pkt_tx
 
uint node_id
 
int sea_trial
 
int print_stats
 
int n_run
 
double Intra_data_Guard_Time
 
std::queue< Packet * > Q_data
 
bool polled
 
bool RxPollEnabled
 
bool Triggered
 
bool LastPacket
 
double MaxTimeStamp
 
double T_in
 
double T_fin
 
double BOffTime
 
int AUV_mac_addr
 
int N_data_pkt_2_TX
 
int packet_index
 
uint n_probe_sent
 
int n_times_polled
 
int n_trigger_received
 
uint N_polled_node
 
uint PROBE_uid
 
Packet * curr_data_pkt
 
Packet * curr_probe_pkt
 
Packet * curr_poll_pkt
 
Packet * curr_trigger_pkt
 
UWPOLLING_NODE_REASON last_reason
 
UWPOLLING_NODE_STATUS curr_state
 
UWPOLLING_NODE_STATUS prev_state
 
BackOffTimer backoff_timer
 
Rx_Poll_Timer rx_poll_timer
 
Tx_Data_Timer tx_data_timer
 
std::ofstream fout
 
std::ofstream out_file_stats
 
int n_trigger_dropped
 
int n_poll_dropped
 
int useAdaptiveTpoll
 

Static Protected Attributes

static bool initialized = false
 
static map< Uwpolling_NODE::UWPOLLING_NODE_STATUS, string > status_info
 
static map< Uwpolling_NODE::UWPOLLING_NODE_REASON, string > reason_info
 
static map< Uwpolling_NODE::UWPOLLING_PKT_TYPE, string > pkt_type_info
 

Detailed Description

Class used to represents the UWPOLLING MAC layer of a node.

Definition at line 74 of file uwpolling_NODE.h.

Member Enumeration Documentation

◆ UWPOLLING_NODE_REASON

Enumerator
UWPOLLING_NODE_REASON_TX_DATA 
UWPOLLING_NODE_REASON_RX_TRIGGER 
UWPOLLING_NODE_REASON_PKT_ERROR 
UWPOLLING_NODE_REASON_TX_PROBE 
UWPOLLING_NODE_REASON_RX_POLL 
UWPOLLING_NODE_REASON_BACKOFF_TIMER_EXPIRED 
UWPOLLING_NODE_REASON_RX_POLL_TIMER_EXPIRED 
UWPOLLING_NODE_REASON_NOT_SET 
UWPOLLING_NODE_REASON_EMPTY_DATA_QUEUE 
UWPOLLING_NODE_REASON_WRONG_TYPE 
UWPOLLING_NODE_REASON_WRONG_RECEIVER 
UWPOLLING_NODE_REASON_WRONG_STATE 
UWPOLLING_NODE_REASON_NOT_IN_LIST 
UWPOLLING_NODE_REASON_LIST_NOT_POLLED 

Definition at line 125 of file uwpolling_NODE.h.

◆ UWPOLLING_NODE_STATUS

< Variable that rapresents the status of the protocol machine state

Enumerator
UWPOLLING_NODE_STATUS_IDLE 
UWPOLLING_NODE_STATUS_RX_TRIGGER 
UWPOLLING_NODE_STATUS_TX_PROBE 
UWPOLLING_NODE_STATUS_RX_POLL 
UWPOLLING_NODE_STATUS_TX_DATA 
UWPOLLING_NODE_STATUS_WAIT_POLL 

Definition at line 107 of file uwpolling_NODE.h.

◆ UWPOLLING_PKT_TYPE

Enumerator
UWPOLLING_DATA_PKT 
UWPOLLING_POLL_PKT 
UWPOLLING_TRIGGER_PKT 
UWPOLLING_PROBE_PKT 

Definition at line 117 of file uwpolling_NODE.h.

◆ UWPOLLING_TIMER_STATUS

Enumerator
UWPOLLING_IDLE 
UWPOLLING_RUNNING 
UWPOLLING_FROZEN 
UWPOLLING_EXPIRED 

Definition at line 143 of file uwpolling_NODE.h.

Constructor & Destructor Documentation

◆ Uwpolling_NODE()

Uwpolling_NODE::Uwpolling_NODE ( )

Constructor of the Uwpolling_NODE class.

Definition at line 129 of file uwpolling_NODE.cpp.

◆ ~Uwpolling_NODE()

Uwpolling_NODE::~Uwpolling_NODE ( )
virtual

Destructor of the Uwpolling_NODE class.

Definition at line 198 of file uwpolling_NODE.cpp.

Member Function Documentation

◆ BackOffTimerExpired()

void Uwpolling_NODE::BackOffTimerExpired ( )
protectedvirtual

Method called by the Expire event of the timer.

Here we call the stateTxProbe method

Definition at line 88 of file uwpolling_NODE.cpp.

◆ command()

int Uwpolling_NODE::command ( int  argc,
const char *const *  argv 
)
virtual

TCL command interpreter.

It implements the following OTcl methods:

Parameters
argcNumber of arguments in argv.
argvArray of strings which are the command parameters (Note that argv[0] is the name of the object).
Returns
TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.

Definition at line 203 of file uwpolling_NODE.cpp.

◆ crLayCommand()

int Uwpolling_NODE::crLayCommand ( ClMessage *  m)
virtual

Cross-Layer messages interpreter.

Parameters
ClMessage*an instance of ClMessage that represent the message received
Returns
0 if successful.

Definition at line 244 of file uwpolling_NODE.cpp.

◆ getBackOffTime()

double Uwpolling_NODE::getBackOffTime ( )
protectedvirtual

The backoff timer is calculated choosing randomly using a Uniform random variable and multiplying it by a backoff_tuner chosen by the user via tcl.

Definition at line 629 of file uwpolling_NODE.cpp.

◆ getDataQueueLog()

void Uwpolling_NODE::getDataQueueLog ( )
inlineprotected

Definition at line 541 of file uwpolling_NODE.h.

◆ getEpoch()

unsigned long int Uwpolling_NODE::getEpoch ( )
inlineprotected

Calculate the epoch of the event.

Used in sea-trial mode

Returns
the epoch of the system

Definition at line 675 of file uwpolling_NODE.h.

◆ getPollDropped()

int Uwpolling_NODE::getPollDropped ( )
inlineprotected

Return the number of POLL dropped by the node because of erroneous CRC.

Returns
itn n_poll_dropped number of POLL dropped

Definition at line 594 of file uwpolling_NODE.h.

◆ getProbeSent()

int Uwpolling_NODE::getProbeSent ( )
inlineprotected

Returns the number of PROBE packets sent during the simulation.

Returns
int n_probe_sent the number of PROBE packets sent

Definition at line 554 of file uwpolling_NODE.h.

◆ getTimesPolled()

int Uwpolling_NODE::getTimesPolled ( )
inlineprotected

Return the number of times the node are polled by the AUV.

Returns
int n_times_polled number of times polled

Definition at line 564 of file uwpolling_NODE.h.

◆ getTriggerDropped()

int Uwpolling_NODE::getTriggerDropped ( )
inlineprotected

Return the number of TRIGGER dropped by the node because of erroneous CRC.

Returns
int n_trigger_dropped number of TRIGGER dropped by the AUV

Definition at line 584 of file uwpolling_NODE.h.

◆ getTriggerReceived()

int Uwpolling_NODE::getTriggerReceived ( )
inlineprotected

Return the number of TRIGGER packets received by the NODE.

Returns
int n_trigger_received number of TRIGGER packets received

Definition at line 574 of file uwpolling_NODE.h.

◆ incrPollDropped()

void Uwpolling_NODE::incrPollDropped ( )
inlineprotected

Increments the number of POLL packets dropped because of erroneous CRC.

Definition at line 535 of file uwpolling_NODE.h.

◆ incrProbeSent()

virtual void Uwpolling_NODE::incrProbeSent ( )
inlineprotectedvirtual

Increment the number of sent PROBE packets.

Definition at line 499 of file uwpolling_NODE.h.

◆ incrTimesPolled()

virtual void Uwpolling_NODE::incrTimesPolled ( )
inlineprotectedvirtual

Increments the number of times that the node has been polled by the AUV.

Definition at line 508 of file uwpolling_NODE.h.

◆ incrTriggerDropped()

void Uwpolling_NODE::incrTriggerDropped ( )
inlineprotected

Increments the number of TRIGGER packets dropped because of erroneous CRC.

Definition at line 526 of file uwpolling_NODE.h.

◆ incrTriggerReceived()

void Uwpolling_NODE::incrTriggerReceived ( )
inlineprotected

Increments the number of TRIGGER packets received.

Definition at line 517 of file uwpolling_NODE.h.

◆ initInfo()

void Uwpolling_NODE::initInfo ( )
protectedvirtual

Initializes the protocol at the beginning of the simulation.

This method is called by a command in tcl.

Parameters
doubledelay
See also
command method

Definition at line 253 of file uwpolling_NODE.cpp.

◆ initPkt()

void Uwpolling_NODE::initPkt ( UWPOLLING_PKT_TYPE  pkt_type)
protectedvirtual

Inits the packet with the MAC address of the receiver and the sender, the size of the packet and the type.

Parameters
UWPOLLING_PKT_TYPEthe type of the packet

Definition at line 535 of file uwpolling_NODE.cpp.

◆ Mac2PhyStartTx()

void Uwpolling_NODE::Mac2PhyStartTx ( Packet *  p)
protectedvirtual

Pass the packet to the PHY layer.

Parameters
Packet*Pointer to an object of type Packet that rapresent the Packet to transmit

Definition at line 468 of file uwpolling_NODE.cpp.

◆ Phy2MacEndRx()

void Uwpolling_NODE::Phy2MacEndRx ( Packet *  p)
protectedvirtual

Method called when the Phy Layer finish to receive a Packet.

Parameters
constPacket* Pointer to an object of type Packet that rapresent the packet received

Definition at line 640 of file uwpolling_NODE.cpp.

◆ Phy2MacEndTx()

void Uwpolling_NODE::Phy2MacEndTx ( const Packet *  p)
protectedvirtual

Method called when the PHY layer finish to transmit the packet.

Parameters
Packet*Pointer to an object of type Packet that rapresent the Packet transmitted

Definition at line 481 of file uwpolling_NODE.cpp.

◆ Phy2MacStartRx()

virtual void Uwpolling_NODE::Phy2MacStartRx ( const Packet *  p)
inlineprotectedvirtual

Method called when the Phy Layer start to receive a Packet.

Parameters
constPacket* Pointer to an object of type Packet that rapresent the Packet that is in reception

Definition at line 450 of file uwpolling_NODE.h.

◆ recvFromUpperLayers()

void Uwpolling_NODE::recvFromUpperLayers ( Packet *  p)
protectedvirtual

Receives the packet from the upper layer (e.g.

IP)

Parameters
Packet*pointer to the packet received

Definition at line 407 of file uwpolling_NODE.cpp.

◆ refreshReason()

virtual void Uwpolling_NODE::refreshReason ( UWPOLLING_NODE_REASON  reason)
inlineprotectedvirtual

Refresh the reason for the changing of the state.

Parameters
UWPOLLING_NODE_REASONThe reason of the change of the state

Definition at line 479 of file uwpolling_NODE.h.

◆ refreshState()

virtual void Uwpolling_NODE::refreshState ( UWPOLLING_NODE_STATUS  state)
inlineprotectedvirtual

Refresh the state of the protocol.

Parameters
UWPOLLING_AUV_STATUScurrent state of the protcol

Definition at line 489 of file uwpolling_NODE.h.

◆ RxPollTimerExpired()

void Uwpolling_NODE::RxPollTimerExpired ( )
protectedvirtual

Methods called by the Expire event of the timer.

Here we disable the possibility of the node to receive POLL packets.

Definition at line 115 of file uwpolling_NODE.cpp.

◆ stateIdle()

void Uwpolling_NODE::stateIdle ( )
protectedvirtual

IDLE state.

Each variable is resetted

Definition at line 579 of file uwpolling_NODE.cpp.

◆ stateRxPoll()

void Uwpolling_NODE::stateRxPoll ( )
protectedvirtual

State of the protocol in which a POLL packet is received.

Here the node check if he's polled or, at least, he is in the list of polled node. If he's the polled node, he goes into the stateTxData state. Otherwise he drops the packet

Definition at line 367 of file uwpolling_NODE.cpp.

◆ stateRxTrigger()

void Uwpolling_NODE::stateRxTrigger ( )
protectedvirtual

State of the protocol in which a TRIGGER packet is received.

Here we check the header of the TRIGGER and we store the information into it (i.e. the range of values into which choose randomly the backoff time

Definition at line 593 of file uwpolling_NODE.cpp.

◆ stateTxData()

void Uwpolling_NODE::stateTxData ( )
protectedvirtual

State of the protocol in which a DATA packet is sent.

Here we compute some statistics related to the transmission of the packet (i.e. the number of data packets transmitted is incremented and we check the number of data packet to transmit

Definition at line 435 of file uwpolling_NODE.cpp.

◆ stateTxProbe()

void Uwpolling_NODE::stateTxProbe ( )
protectedvirtual

State of the protocol in which a PROBE packet is sent.

Here we store into the PROBE header all the information needed, such as the timestamp of the most recent data packet, the number of the packets that the node wish to transmit

Definition at line 309 of file uwpolling_NODE.cpp.

◆ stateWaitPoll()

void Uwpolling_NODE::stateWaitPoll ( )
protectedvirtual

State in which the protocol set up the timer to wait the reception of the POLL packet.

Definition at line 351 of file uwpolling_NODE.cpp.

◆ TxData()

void Uwpolling_NODE::TxData ( )
protectedvirtual

The DATA Packet is sended down to the PHY layer.

Definition at line 474 of file uwpolling_NODE.cpp.

◆ TxPRobe()

void Uwpolling_NODE::TxPRobe ( )
protectedvirtual

The PROBE Packet is sended down to the PHY layer.

Definition at line 343 of file uwpolling_NODE.cpp.

◆ waitForUser()

void Uwpolling_NODE::waitForUser ( )
protectedvirtual

Used for debug purposes.

(Permit to have a "step by step" behaviour of the protocol)

Definition at line 710 of file uwpolling_NODE.cpp.

Member Data Documentation

◆ AUV_mac_addr

int Uwpolling_NODE::AUV_mac_addr
protected

MAC address of the AUV.

Definition at line 728 of file uwpolling_NODE.h.

◆ backoff_timer

BackOffTimer Uwpolling_NODE::backoff_timer
protected

Backoff timer.

Definition at line 755 of file uwpolling_NODE.h.

◆ backoff_tuner

double Uwpolling_NODE::backoff_tuner
protected

Multiplying value to the backoff value.

Definition at line 688 of file uwpolling_NODE.h.

◆ BOffTime

double Uwpolling_NODE::BOffTime
protected

Backoff time chosen.

Definition at line 727 of file uwpolling_NODE.h.

◆ buffer_data_pkts

int Uwpolling_NODE::buffer_data_pkts
protected

Length of buffer of DATA pkts in number of pkts.

Definition at line 690 of file uwpolling_NODE.h.

◆ curr_data_pkt

Packet* Uwpolling_NODE::curr_data_pkt
protected

Pointer to the current DATA packet.

Definition at line 738 of file uwpolling_NODE.h.

◆ curr_poll_pkt

Packet* Uwpolling_NODE::curr_poll_pkt
protected

Pointer ot the current POLL packet.

Definition at line 740 of file uwpolling_NODE.h.

◆ curr_probe_pkt

Packet* Uwpolling_NODE::curr_probe_pkt
protected

Pointer to the current PROBE packet.

Definition at line 739 of file uwpolling_NODE.h.

◆ curr_state

UWPOLLING_NODE_STATUS Uwpolling_NODE::curr_state
protected

Current state of the protocol.

Definition at line 745 of file uwpolling_NODE.h.

◆ curr_trigger_pkt

Packet* Uwpolling_NODE::curr_trigger_pkt
protected

Pointer to the current TRIGGER packet.

Definition at line 741 of file uwpolling_NODE.h.

◆ fout

std::ofstream Uwpolling_NODE::fout
protected

Output stream for the textual file of debug.

Definition at line 760 of file uwpolling_NODE.h.

◆ initialized

bool Uwpolling_NODE::initialized = false
staticprotected

true if the protocol is initialized, false otherwise

Definition at line 705 of file uwpolling_NODE.h.

◆ Intra_data_Guard_Time

double Uwpolling_NODE::Intra_data_Guard_Time
protected

Guard Time between one data packet and the following.

Definition at line 700 of file uwpolling_NODE.h.

◆ last_reason

UWPOLLING_NODE_REASON Uwpolling_NODE::last_reason
protected

Last reason to the change of state.

Definition at line 744 of file uwpolling_NODE.h.

◆ LastPacket

bool Uwpolling_NODE::LastPacket
protected

true if the node has just sent the last packet of the queue and has to exit from the TxData state, false otherwise

Definition at line 716 of file uwpolling_NODE.h.

◆ max_data_pkt_tx

int Uwpolling_NODE::max_data_pkt_tx
protected

Max number of DATA packets to transmit each cycle.

Definition at line 693 of file uwpolling_NODE.h.

◆ max_payload

int Uwpolling_NODE::max_payload
protected

Payload of Application Layer in bytes.

Definition at line 689 of file uwpolling_NODE.h.

◆ MaxTimeStamp

double Uwpolling_NODE::MaxTimeStamp
protected

Timestamp of the most recent data packet generated.

Definition at line 721 of file uwpolling_NODE.h.

◆ N_data_pkt_2_TX

int Uwpolling_NODE::N_data_pkt_2_TX
protected

Number of DATA packets to transmit to the AUV.

Definition at line 729 of file uwpolling_NODE.h.

◆ n_poll_dropped

int Uwpolling_NODE::n_poll_dropped
protected

Number of POLL packet dropped.

Definition at line 764 of file uwpolling_NODE.h.

◆ N_polled_node

uint Uwpolling_NODE::N_polled_node
protected

Number of node polled in this POLL message.

Definition at line 735 of file uwpolling_NODE.h.

◆ n_probe_sent

uint Uwpolling_NODE::n_probe_sent
protected

Number of PROBE packets sent to the AUV.

Definition at line 731 of file uwpolling_NODE.h.

◆ n_run

int Uwpolling_NODE::n_run
protected

Definition at line 699 of file uwpolling_NODE.h.

◆ n_times_polled

int Uwpolling_NODE::n_times_polled
protected

Number of times that the node has been polled by the AUV.

Definition at line 732 of file uwpolling_NODE.h.

◆ n_trigger_dropped

int Uwpolling_NODE::n_trigger_dropped
protected

Number of TRIGGER packet dropped.

Definition at line 763 of file uwpolling_NODE.h.

◆ n_trigger_received

int Uwpolling_NODE::n_trigger_received
protected

Number of TRIGGER packets received.

Definition at line 734 of file uwpolling_NODE.h.

◆ node_id

uint Uwpolling_NODE::node_id
protected

Unique Node ID.

Definition at line 695 of file uwpolling_NODE.h.

◆ out_file_stats

std::ofstream Uwpolling_NODE::out_file_stats
protected

Definition at line 761 of file uwpolling_NODE.h.

◆ packet_index

int Uwpolling_NODE::packet_index
protected

Index of the packet just sent to the AUV.

Definition at line 730 of file uwpolling_NODE.h.

◆ pkt_type_info

map< Uwpolling_NODE::UWPOLLING_PKT_TYPE, string > Uwpolling_NODE::pkt_type_info
staticprotected

Textual info of the type of the packet.

Definition at line 753 of file uwpolling_NODE.h.

◆ polled

bool Uwpolling_NODE::polled
protected

true if the node is polled, false otherwise

Definition at line 709 of file uwpolling_NODE.h.

◆ prev_state

UWPOLLING_NODE_STATUS Uwpolling_NODE::prev_state
protected

Previous state of the protocol.

Definition at line 746 of file uwpolling_NODE.h.

◆ print_stats

int Uwpolling_NODE::print_stats
protected

Print protocol's statistics of the protocol.

Definition at line 698 of file uwpolling_NODE.h.

◆ PROBE_uid

uint Uwpolling_NODE::PROBE_uid
protected

PROBE Unique ID.

Definition at line 736 of file uwpolling_NODE.h.

◆ Q_data

std::queue<Packet *> Uwpolling_NODE::Q_data
protected

Queue of DATA in number of packets.

Definition at line 703 of file uwpolling_NODE.h.

◆ reason_info

map< Uwpolling_NODE::UWPOLLING_NODE_REASON, string > Uwpolling_NODE::reason_info
staticprotected

Textual info of the reason.

Definition at line 751 of file uwpolling_NODE.h.

◆ rx_poll_timer

Rx_Poll_Timer Uwpolling_NODE::rx_poll_timer
protected

Receiving POLL Timer.

Definition at line 756 of file uwpolling_NODE.h.

◆ RxPollEnabled

bool Uwpolling_NODE::RxPollEnabled
protected

true if the node is enabled to receive the POLL, false otherwise

Definition at line 711 of file uwpolling_NODE.h.

◆ sea_trial

int Uwpolling_NODE::sea_trial
protected

Sea Trial flag: To activate if the protocol is going to be tested at the sea.

Definition at line 696 of file uwpolling_NODE.h.

◆ status_info

map< Uwpolling_NODE::UWPOLLING_NODE_STATUS, string > Uwpolling_NODE::status_info
staticprotected

Textual info of the state.

Definition at line 749 of file uwpolling_NODE.h.

◆ T_fin

double Uwpolling_NODE::T_fin
protected

Upper bound of the range in which choose randomly the backoff time (sent by the AUV in the TRIGGER message)

Definition at line 725 of file uwpolling_NODE.h.

◆ T_in

double Uwpolling_NODE::T_in
protected

Lower bound of the range in which choose randomly the backoff time (sent by the AUV in the TRIGGER message)

Definition at line 723 of file uwpolling_NODE.h.

◆ T_poll

double Uwpolling_NODE::T_poll
protected

Duration of RxPOLLTimer.

Definition at line 686 of file uwpolling_NODE.h.

◆ T_poll_guard

double Uwpolling_NODE::T_poll_guard
protected

Guard time for initial POLL timer.

Definition at line 687 of file uwpolling_NODE.h.

◆ Triggered

bool Uwpolling_NODE::Triggered
protected

true if the node has correctly received a TRIGGER, false otherwise

Definition at line 713 of file uwpolling_NODE.h.

◆ tx_data_timer

Tx_Data_Timer Uwpolling_NODE::tx_data_timer
protected

Timer between two consequent DATA packet transmission.

Definition at line 757 of file uwpolling_NODE.h.

◆ useAdaptiveTpoll

int Uwpolling_NODE::useAdaptiveTpoll
protected

True if an adaptive T_poll is used.

Definition at line 766 of file uwpolling_NODE.h.


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