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

#include <uw-smart-ofdm.h>

Inheritance diagram for UWSmartOFDM:
Collaboration diagram for UWSmartOFDM:

Classes

class  AckTimer
 
class  AssignmentTimer
 
class  AssignmentValidTimer
 
class  BackOffTimer
 
class  CTSTimer
 
class  DATATimer
 
class  RTSTimer
 
class  UWSmartOFDMTimer
 

Public Member Functions

 UWSmartOFDM ()
 
virtual ~UWSmartOFDM ()
 
virtual int command (int argc, const char *const *argv)
 
void init_macofdm_node (int subCarNum, double carSize, int ctrl_subCar, std::string modulation)
 

Protected Types

enum  UWSMARTOFDM_STATUS {
  UWSMARTOFDM_STATE_IDLE = 1 , UWSMARTOFDM_STATE_BACKOFF , UWSMARTOFDM_STATE_TX_DATA , UWSMARTOFDM_STATE_TX_ACK ,
  UWSMARTOFDM_STATE_WAIT_ACK , UWSMARTOFDM_STATE_DATA_RX , UWSMARTOFDM_STATE_ACK_RX , UWSMARTOFDM_STATE_NOT_SET ,
  UWSMARTOFDM_STATE_CHK_ACK_TIMEOUT , UWSMARTOFDM_STATE_RX_IDLE , UWSMARTOFDM_STATE_RX_WAIT_ACK , UWSMARTOFDM_STATE_CHK_BACKOFF_TIMEOUT ,
  UWSMARTOFDM_STATE_RX_BACKOFF , UWSMARTOFDM_STATE_WRONG_PKT_RX , UWSMARTOFDM_STATE_TX_RTS , UWSMARTOFDM_STATE_RX_RTS ,
  UWSMARTOFDM_STATE_WAIT_CTS , UWSMARTOFDM_STATE_CTRL_BACKOFF , UWSMARTOFDM_STATE_CHK_CTS_BACKOFF_TIMEOUT , UWSMARTOFDM_STATE_TX_CTS ,
  UWSMARTOFDM_STATE_RX_CTS , UWSMARTOFDM_STATE_RX_ACTIVE , UWSMARTOFDM_STATE_TX_ACTIVE , UWSMARTOFDM_STATE_WAIT_DATA
}
 
enum  UWSMARTOFDM_REASON_STATUS {
  UWSMARTOFDM_REASON_DATA_PENDING , UWSMARTOFDM_REASON_DATA_NOCAR , UWSMARTOFDM_REASON_DATA_CARASSIGNED , UWSMARTOFDM_REASON_DATA_RX ,
  UWSMARTOFDM_REASON_DATA_TX , UWSMARTOFDM_REASON_ACK_TX , UWSMARTOFDM_REASON_ACK_RX , UWSMARTOFDM_REASON_ACK_TIMEOUT ,
  UWSMARTOFDM_REASON_DATA_EMPTY , UWSMARTOFDM_REASON_NOT_SET , UWSMARTOFDM_REASON_MAX_TX_TRIES , UWSMARTOFDM_REASON_START_RX ,
  UWSMARTOFDM_REASON_PKT_NOT_FOR_ME , UWSMARTOFDM_REASON_WAIT_ACK_PENDING , UWSMARTOFDM_REASON_PKT_ERROR , UWSMARTOFDM_REASON_BACKOFF_TIMEOUT ,
  UWSMARTOFDM_REASON_BACKOFF_PENDING , UWSMARTOFDM_REASON_WAIT_CTS_PENDING , UWSMARTOFDM_REASON_CTS_TX , UWSMARTOFDM_REASON_RTS_TX ,
  UWSMARTOFDM_REASON_CTS_RX , UWSMARTOFDM_REASON_RTS_RX , UWSMARTOFDM_REASON_CTS_BACKOFF_TIMEOUT , UWSMARTOFDM_REASON_PHY_LAYER_RECEIVING ,
  UWSMARTOFDM_REASON_PHY_LAYER_SENDING , UWSMARTOFDM_REASON_MAX_RTS_TRIES , UWSMARTOFDM_REASON_WAIT_DATA , UWSMARTOFDM_REASON_DATAT_EXPIRED ,
  UWSMARTOFDM_REASON_PREVIOUS_RTS
}
 
enum  UWSMARTOFDM_PKT_TYPE {
  UWSMARTOFDM_ACK_PKT = 1 , UWSMARTOFDM_DATA_PKT , UWSMARTOFDM_DATAMAX_PKT , UWSMARTOFDM_RTS_PKT ,
  UWSMARTOFDM_CTS_PKT
}
 
enum  UWSMARTOFDM_ACK_MODES { UWSMARTOFDM_ACK_MODE = 1 , UWSMARTOFDM_NO_ACK_MODE }
 
enum  UWSMARTOFDM_TIMER_STATUS { UWSMARTOFDM_IDLE = 1 , UWSMARTOFDM_RUNNING , UWSMARTOFDM_FROZEN , UWSMARTOFDM_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 double computeTxTime (UWSMARTOFDM_PKT_TYPE type)
 
virtual void initPkt (Packet *p, UWSMARTOFDM_PKT_TYPE pkt_type, int dest_addr=0)
 
virtual double getBackoffTime ()
 
virtual void txData ()
 
virtual void txAck (int dest_addr)
 
virtual void txRTS ()
 
virtual void txCTS (int dest_addr, int *rcv_car, int bytesToSend)
 
virtual void stateIdle ()
 
virtual void stateSendRTS ()
 
virtual void stateSendCTS (Packet *p)
 
virtual void stateWaitCTS ()
 
virtual void stateBackoffCTS ()
 
virtual void stateRxIdle ()
 
virtual void stateTxData ()
 
virtual void stateTxAck (int dest_addr)
 
virtual void stateWaitAck ()
 
virtual void stateRxWaitAck ()
 
virtual void stateBackoff (double bt=0)
 
virtual void stateRxBackoff ()
 
virtual void stateCheckAckExpired ()
 
virtual void stateCheckBackoffExpired ()
 
virtual void stateCheckCTSBackoffExpired ()
 
virtual void stateRxData (Packet *p)
 
virtual void stateRxAck (Packet *p)
 
virtual void stateRxRTS (Packet *p)
 
virtual void stateRxCTS (Packet *p)
 
virtual void stateWaitData (double t)
 
virtual void exitBackoff ()
 
virtual void exitCTSBackoff ()
 
virtual void printStateInfo (double delay=0)
 
virtual void initInfo ()
 
virtual void refreshState (UWSMARTOFDM_STATUS state)
 
virtual void refreshReason (UWSMARTOFDM_REASON_STATUS reason)
 
virtual void incrCurrTxRounds ()
 
virtual void resetCurrTxRounds ()
 
virtual void updateRTT (double rtt)
 
virtual double getRTT ()
 
virtual double getRTSsent ()
 
virtual double getCTSsent ()
 
virtual void updateAckTimeout (double rtt)
 
virtual void updateLastDataIdRx (int id)
 
virtual void waitForUser ()
 
int getPktSeqNum (Packet *p)
 
void putPktInQueue (Packet *p)
 
void eraseItemFromPktQueue (int seq_num)
 
void putAckTimerInMap (int seq_num)
 
void eraseItemFrommapAckTimer (int seq_num)
 
virtual int getRemainingPkts ()
 
virtual void incrUpperDataRx ()
 
int getUpLayersDataPktsRx ()
 
int getHighPrioPktsSent ()
 
int getHighPrioPktsRecv ()
 
void carToBeUsed (criticalLevel c, int &top, int &bottom, int &avoid_top, int &avoid_bottom)
 
int pickFreeCarriers (int *freeC)
 
int matchCarriers (int *myFree, int *otherFree, int *matching)
 
void updateOccupancy (int *busyCar, int ntslots)
 
void clearOccTable ()
 
void resetAssignment ()
 
void printOccTable ()
 
void Mac2PhySetTxBusy (int, int get=0)
 
bool batchSending ()
 
void addInvalidCarriers (int c)
 
void removeInvalidCarrier (int c)
 
void updateInterfTable (Packet *p)
 

Protected Attributes

int max_tx_tries
 
double wait_constant
 
double backoff_tuner
 
int max_payload
 
int HDR_size
 
int ACK_size
 
int RTS_size
 
int CTS_size
 
int DATA_size
 
double ACK_timeout
 
double bitrateCar
 
int buffer_pkts
 
double alpha_
 
double max_backoff_counter
 
int uwsmartofdm_debug
 
std::vector< string > mac_carMod
 
std::vector< int > mac_carVec
 
std::vector< char > mac_prioVec
 
int mac_ncarriers
 
double mac_carrierSize
 
int ctrl_car
 
int data_car
 
bool coordinator
 
criticalLevel cLevel = LOW
 
bool car_assigned = 0
 
int nodeNum
 
std::atomic< int > current_rcvs
 
int current_macDA
 
int oTableIndex
 
int max_aval_car
 
int last_sent_data_id
 
bool print_transitions
 
bool has_buffer_queue
 
double start_tx_time
 
double srtt
 
double sumrtt
 
double sumrtt2
 
int rttsamples
 
int RTSsent = 0
 
int CTSsent = 0
 
int curr_tx_rounds
 
int last_data_id_rx
 
int recv_data_id
 
int high_prio_pkt_sent = 0
 
int high_prio_pkt_recv = 0
 
double nextAssignment
 
Packet * curr_data_pkt
 
int txsn
 
AckTimer ack_timer
 
BackOffTimer backoff_timer
 
CTSTimer CTS_timer
 
RTSTimer RTS_timer
 
DATATimer DATA_timer
 
AssignmentTimer assignment_timer
 
AssignmentValidTimer assignment_valid_timer
 
UWSMARTOFDM_REASON_STATUS last_reason
 
UWSMARTOFDM_STATUS curr_state
 
UWSMARTOFDM_STATUS prev_state
 
UWSMARTOFDM_STATUS prev_prev_state
 
UWSMARTOFDM_ACK_MODES ack_mode
 
map< pktSeqNum, Packet * > mapPacket
 
map< pktSeqNum, AckTimermapAckTimer
 
ofstream fout
 
MsgDisplayer msgDisp
 
std::vector< std::vector< int > > occupancy_table
 
std::mutex otabmtx
 
int timeslots
 
double timeslot_length
 
int max_car_reserved
 
int req_tslots
 
int current_timeslot
 
int max_rts_tries
 
int curr_rts_tries
 
int max_burst_size
 
int curr_pkt_batch
 
bool batch_sending
 
bool RTSvalid
 
double nextFreeTime
 
bool ackToSend
 
Packet * pkt_to_ack
 
int waitPkt
 
Packet * nextRTS
 
double nextRTSts
 
bool fullBand
 
std::vector< int > nouse_carriers
 
std::vector< std::vector< double > > interf_table
 

Static Protected Attributes

static bool initialized = false
 
static const double prop_speed = 1500.0
 
static map< UWSMARTOFDM_STATUS, string > status_info
 
static map< UWSMARTOFDM_REASON_STATUS, string > reason_info
 
static map< UWSMARTOFDM_PKT_TYPE, string > pkt_type_info
 
static map< criticalLevel, string > clevel_info
 

Detailed Description

This is the base class of UWSmartOFDM protocol, which is a derived class of MMac.

Definition at line 97 of file uw-smart-ofdm.h.

Member Enumeration Documentation

◆ UWSMARTOFDM_ACK_MODES

Enumeration class of UWSmartOFDM acknowledgement mode.

First enumerator is given value 1. This protocol supports both acknowledgement and non-acknowledgement technique. If Acknowledgement is set, it uses Stop-And-Wait ARQ technique.

Enumerator
UWSMARTOFDM_ACK_MODE 
UWSMARTOFDM_NO_ACK_MODE 

Definition at line 211 of file uw-smart-ofdm.h.

◆ UWSMARTOFDM_PKT_TYPE

Enumeration class of UWSmartOFDM packet type.

First enumerator is given value

  1. Three kinds of packets are supported by UWSmartOFDM protocol.
Enumerator
UWSMARTOFDM_ACK_PKT 
UWSMARTOFDM_DATA_PKT 
UWSMARTOFDM_DATAMAX_PKT 
UWSMARTOFDM_RTS_PKT 
UWSMARTOFDM_CTS_PKT 

Definition at line 196 of file uw-smart-ofdm.h.

◆ UWSMARTOFDM_REASON_STATUS

Enumeration class which tells the nodes the reason why it is in this state.

First enumerator is given value 1.

Enumerator
UWSMARTOFDM_REASON_DATA_PENDING 
UWSMARTOFDM_REASON_DATA_NOCAR 
UWSMARTOFDM_REASON_DATA_CARASSIGNED 
UWSMARTOFDM_REASON_DATA_RX 
UWSMARTOFDM_REASON_DATA_TX 
UWSMARTOFDM_REASON_ACK_TX 
UWSMARTOFDM_REASON_ACK_RX 
UWSMARTOFDM_REASON_ACK_TIMEOUT 
UWSMARTOFDM_REASON_DATA_EMPTY 
UWSMARTOFDM_REASON_NOT_SET 
UWSMARTOFDM_REASON_MAX_TX_TRIES 
UWSMARTOFDM_REASON_START_RX 
UWSMARTOFDM_REASON_PKT_NOT_FOR_ME 
UWSMARTOFDM_REASON_WAIT_ACK_PENDING 
UWSMARTOFDM_REASON_PKT_ERROR 
UWSMARTOFDM_REASON_BACKOFF_TIMEOUT 
UWSMARTOFDM_REASON_BACKOFF_PENDING 
UWSMARTOFDM_REASON_WAIT_CTS_PENDING 
UWSMARTOFDM_REASON_CTS_TX 
UWSMARTOFDM_REASON_RTS_TX 
UWSMARTOFDM_REASON_CTS_RX 
UWSMARTOFDM_REASON_RTS_RX 
UWSMARTOFDM_REASON_CTS_BACKOFF_TIMEOUT 
UWSMARTOFDM_REASON_PHY_LAYER_RECEIVING 
UWSMARTOFDM_REASON_PHY_LAYER_SENDING 
UWSMARTOFDM_REASON_MAX_RTS_TRIES 
UWSMARTOFDM_REASON_WAIT_DATA 
UWSMARTOFDM_REASON_DATAT_EXPIRED 
UWSMARTOFDM_REASON_PREVIOUS_RTS 

Definition at line 160 of file uw-smart-ofdm.h.

◆ UWSMARTOFDM_STATUS

Enumeration class of UWSmartOFDM status.

First enumerator is given value 1.

Enumerator
UWSMARTOFDM_STATE_IDLE 
UWSMARTOFDM_STATE_BACKOFF 
UWSMARTOFDM_STATE_TX_DATA 
UWSMARTOFDM_STATE_TX_ACK 
UWSMARTOFDM_STATE_WAIT_ACK 
UWSMARTOFDM_STATE_DATA_RX 
UWSMARTOFDM_STATE_ACK_RX 
UWSMARTOFDM_STATE_NOT_SET 
UWSMARTOFDM_STATE_CHK_ACK_TIMEOUT 
UWSMARTOFDM_STATE_RX_IDLE 
UWSMARTOFDM_STATE_RX_WAIT_ACK 
UWSMARTOFDM_STATE_CHK_BACKOFF_TIMEOUT 
UWSMARTOFDM_STATE_RX_BACKOFF 
UWSMARTOFDM_STATE_WRONG_PKT_RX 
UWSMARTOFDM_STATE_TX_RTS 
UWSMARTOFDM_STATE_RX_RTS 
UWSMARTOFDM_STATE_WAIT_CTS 
UWSMARTOFDM_STATE_CTRL_BACKOFF 
UWSMARTOFDM_STATE_CHK_CTS_BACKOFF_TIMEOUT 
UWSMARTOFDM_STATE_TX_CTS 
UWSMARTOFDM_STATE_RX_CTS 
UWSMARTOFDM_STATE_RX_ACTIVE 
UWSMARTOFDM_STATE_TX_ACTIVE 
UWSMARTOFDM_STATE_WAIT_DATA 

Definition at line 129 of file uw-smart-ofdm.h.

◆ UWSMARTOFDM_TIMER_STATUS

Enumeration class of UWSmartOFDM timer status.

First enumerator is given value

  1. It is employed to know the current status of a timer.
Enumerator
UWSMARTOFDM_IDLE 
UWSMARTOFDM_RUNNING 
UWSMARTOFDM_FROZEN 
UWSMARTOFDM_EXPIRED 

Definition at line 217 of file uw-smart-ofdm.h.

Constructor & Destructor Documentation

◆ UWSmartOFDM()

UWSmartOFDM::UWSmartOFDM ( )

Constructor of UWSmartOFDM Class.

Definition at line 225 of file uw-smart-ofdm.cpp.

◆ ~UWSmartOFDM()

UWSmartOFDM::~UWSmartOFDM ( )
virtual

Destructor of UWSmartOFDM Class.

Definition at line 273 of file uw-smart-ofdm.cpp.

Member Function Documentation

◆ addInvalidCarriers()

void UWSmartOFDM::addInvalidCarriers ( int  c)
inlineprotected

Definition at line 1102 of file uw-smart-ofdm.h.

◆ batchSending()

bool UWSmartOFDM::batchSending ( )
protected

Definition at line 1957 of file uw-smart-ofdm.cpp.

◆ carToBeUsed()

void UWSmartOFDM::carToBeUsed ( criticalLevel  c,
int &  top,
int &  bottom,
int &  avoid_top,
int &  avoid_bottom 
)
protected

returns the current free carriers that can be given to a node top and bottom give the range avoid_top and avoid_bottom if a subrange must be avoided, 0 otherwise

Definition at line 1777 of file uw-smart-ofdm.cpp.

◆ clearOccTable()

void UWSmartOFDM::clearOccTable ( )
protected

clears the carriers used in the past moves the index for the current time to the next slot

Definition at line 1908 of file uw-smart-ofdm.cpp.

◆ command()

int UWSmartOFDM::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 succesfully or not

Definition at line 279 of file uw-smart-ofdm.cpp.

◆ computeTxTime()

double UWSmartOFDM::computeTxTime ( UWSMARTOFDM_PKT_TYPE  type)
protectedvirtual

Compute the transmission time of a packet.

It uses a cross-layer message to calculate the duration of that packet.

Parameters
typeis a UWSMARTOFDM_PKT_TYPE
Returns
tranmission time of a packet which is a double data type.

Definition at line 542 of file uw-smart-ofdm.cpp.

◆ eraseItemFrommapAckTimer()

void UWSmartOFDM::eraseItemFrommapAckTimer ( int  seq_num)
inlineprotected

Erase an item from acknowledgement stored container.

Parameters
seq_numwhich is an integer data type.

Definition at line 998 of file uw-smart-ofdm.h.

◆ eraseItemFromPktQueue()

void UWSmartOFDM::eraseItemFromPktQueue ( int  seq_num)
inlineprotected

It erases the packet from the container.

Parameters
seq_numwhich is an integer data type.

Definition at line 970 of file uw-smart-ofdm.h.

◆ exitBackoff()

void UWSmartOFDM::exitBackoff ( )
protectedvirtual

It stops the backoff timer.

Definition at line 506 of file uw-smart-ofdm.cpp.

◆ exitCTSBackoff()

void UWSmartOFDM::exitCTSBackoff ( )
protectedvirtual

It stops the CTS backoff timer.

Definition at line 511 of file uw-smart-ofdm.cpp.

◆ getBackoffTime()

double UWSmartOFDM::getBackoffTime ( )
protectedvirtual

This function calculates the backoff duration and return the backoff time.It employs the exponential backoff algorithm.

Returns
backoff duration which is a double data type.

Definition at line 517 of file uw-smart-ofdm.cpp.

◆ getCTSsent()

virtual double UWSmartOFDM::getCTSsent ( )
inlineprotectedvirtual

This method is used to get the total number of sent CTS messages.

Definition at line 919 of file uw-smart-ofdm.h.

◆ getHighPrioPktsRecv()

int UWSmartOFDM::getHighPrioPktsRecv ( )
inlineprotected

Definition at line 1040 of file uw-smart-ofdm.h.

◆ getHighPrioPktsSent()

int UWSmartOFDM::getHighPrioPktsSent ( )
inlineprotected

Definition at line 1033 of file uw-smart-ofdm.h.

◆ getPktSeqNum()

int UWSmartOFDM::getPktSeqNum ( Packet *  p)
inlineprotected

This method is used to get the sequence number from a packet.

Parameters
packetpointer
Returns
it returns sequence number which is an integer data type.

Definition at line 946 of file uw-smart-ofdm.h.

◆ getRemainingPkts()

virtual int UWSmartOFDM::getRemainingPkts ( )
inlineprotectedvirtual

Number of packets which MAC layer receives form upper layer(s) but were not transmitted.

Returns
an integer value.

Definition at line 1011 of file uw-smart-ofdm.h.

◆ getRTSsent()

virtual double UWSmartOFDM::getRTSsent ( )
inlineprotectedvirtual

This method is used to get the total number of sent RTS messages.

Definition at line 910 of file uw-smart-ofdm.h.

◆ getRTT()

virtual double UWSmartOFDM::getRTT ( )
inlineprotectedvirtual

This method is used to get the average RTT over all the receives RTT.

Returns
average RTT time which is a double data type.

Definition at line 901 of file uw-smart-ofdm.h.

◆ getUpLayersDataPktsRx()

int UWSmartOFDM::getUpLayersDataPktsRx ( )
inlineprotected

Definition at line 1026 of file uw-smart-ofdm.h.

◆ incrCurrTxRounds()

virtual void UWSmartOFDM::incrCurrTxRounds ( )
inlineprotectedvirtual

Increments the current transmission round of a packet.

It keeps track of the number of retransmition of a packet.

Definition at line 875 of file uw-smart-ofdm.h.

◆ incrUpperDataRx()

virtual void UWSmartOFDM::incrUpperDataRx ( )
inlineprotectedvirtual

Increment the number of Data packet receive for the upper layer.

Definition at line 1020 of file uw-smart-ofdm.h.

◆ init_macofdm_node()

void UWSmartOFDM::init_macofdm_node ( int  subCarNum,
double  carSize,
int  ctrl_subCar,
std::string  modulation 
)

Definition at line 433 of file uw-smart-ofdm.cpp.

◆ initInfo()

void UWSmartOFDM::initInfo ( )
protectedvirtual

This function is used to initialize the UWSmartOFDM protocol.

Definition at line 361 of file uw-smart-ofdm.cpp.

◆ initPkt()

void UWSmartOFDM::initPkt ( Packet *  p,
UWSMARTOFDM_PKT_TYPE  pkt_type,
int  dest_addr = 0 
)
protectedvirtual

This method, initialize the packet.

If the packet is received from the upper layer, it adds the header (if any). In case of UWSmartOFDM with ARQ technique, it set the fields of ACK packet.

Parameters
Packetpointer P. The packet can be Data packet or ACK packet.
pkt_typeis an UWSMARTOFDM_PKT_TYPE. Packet can be either Data packet or ACK packet.
dest_addris a integer data type. It is initialized as 0.

Definition at line 626 of file uw-smart-ofdm.cpp.

◆ Mac2PhySetTxBusy()

void UWSmartOFDM::Mac2PhySetTxBusy ( int  busy,
int  get = 0 
)
protected

Definition at line 1943 of file uw-smart-ofdm.cpp.

◆ Mac2PhyStartTx()

void UWSmartOFDM::Mac2PhyStartTx ( Packet *  p)
protectedvirtual

It informs that a packet transmission started.

Parameters
Packetpointer

Definition at line 715 of file uw-smart-ofdm.cpp.

◆ matchCarriers()

int UWSmartOFDM::matchCarriers ( int *  myFree,
int *  otherFree,
int *  matching 
)
protected

Returns free Carriers matching between itself and the sender to be used when an RTS is received to find carriers to include into CTS

Parameters
myFreeis node's free carriers
otherFreeis other node's free carriers
matchingis the match between myFree and otherFree
Returns
the number of matching carriers

Definition at line 1866 of file uw-smart-ofdm.cpp.

◆ Phy2MacEndRx()

void UWSmartOFDM::Phy2MacEndRx ( Packet *  p)
protectedvirtual

PHY layer informs the MAC layer that the reception of the packet is over.

Parameters
Packetpointer.

Definition at line 831 of file uw-smart-ofdm.cpp.

◆ Phy2MacEndTx()

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

It infroms that a packet transmission end.

Parameters
Packetpointer

Definition at line 733 of file uw-smart-ofdm.cpp.

◆ Phy2MacStartRx()

void UWSmartOFDM::Phy2MacStartRx ( const Packet *  p)
protectedvirtual

PHY layer informs the MAC layer that it is receiving a packet.

@Param Packet pointer (constant)

Definition at line 824 of file uw-smart-ofdm.cpp.

◆ pickFreeCarriers()

int UWSmartOFDM::pickFreeCarriers ( int *  freeC)
protected

Returns max 5 carriers that are free in the next n time slots from occupancy table.

Parameters
nis for how many timeslots I want them free,
freeCreturned carriers
Returns
number of free carriers

Definition at line 1844 of file uw-smart-ofdm.cpp.

◆ printOccTable()

void UWSmartOFDM::printOccTable ( )
protected

prints on terminal the table

Definition at line 1927 of file uw-smart-ofdm.cpp.

◆ printStateInfo()

void UWSmartOFDM::printStateInfo ( double  delay = 0)
protectedvirtual

This methods print the state information of the nodes.

Parameters
delayis a double data type.

Definition at line 1696 of file uw-smart-ofdm.cpp.

◆ putAckTimerInMap()

void UWSmartOFDM::putAckTimerInMap ( int  seq_num)
inlineprotected

Put acknowledgement timer in the container.

Parameters
seq_numwhich is an integer data type.

Definition at line 988 of file uw-smart-ofdm.h.

◆ putPktInQueue()

void UWSmartOFDM::putPktInQueue ( Packet *  p)
inlineprotected

A node receives packet(s) from upper layer and store them in the container.

Parameters
packetpointer

Definition at line 960 of file uw-smart-ofdm.h.

◆ recvFromUpperLayers()

void UWSmartOFDM::recvFromUpperLayers ( Packet *  p)
protectedvirtual

This function receives the packet from upper layer and save it in the queue.

Parameters
Packetpointer

Definition at line 576 of file uw-smart-ofdm.cpp.

◆ refreshReason()

virtual void UWSmartOFDM::refreshReason ( UWSMARTOFDM_REASON_STATUS  reason)
inlineprotectedvirtual

To know the reason why a node is in this current state.

Parameters
reasonis an UWSMARTOFDM_REASON_STATUS type.

Definition at line 865 of file uw-smart-ofdm.h.

◆ refreshState()

virtual void UWSmartOFDM::refreshState ( UWSMARTOFDM_STATUS  state)
inlineprotectedvirtual

Refreshes the states of the node.

The node save the information of three states, they are: previous to previous state, previous state and current state of the node.

Parameters
statewhich is an UWSMARTOFDM_STATUS type.

Definition at line 853 of file uw-smart-ofdm.h.

◆ removeInvalidCarrier()

void UWSmartOFDM::removeInvalidCarrier ( int  c)
protected

Definition at line 1727 of file uw-smart-ofdm.cpp.

◆ resetAssignment()

void UWSmartOFDM::resetAssignment ( )
protected

resets value of car_assigned to FALSE

Definition at line 1920 of file uw-smart-ofdm.cpp.

◆ resetCurrTxRounds()

virtual void UWSmartOFDM::resetCurrTxRounds ( )
inlineprotectedvirtual

If a node is going to transmit a new packet, it resets the tx counter.

Definition at line 884 of file uw-smart-ofdm.h.

◆ stateBackoff()

void UWSmartOFDM::stateBackoff ( double  bt = 0)
protectedvirtual

If ACK packet is not received within the acknowledgement expire time.

Definition at line 1453 of file uw-smart-ofdm.cpp.

◆ stateBackoffCTS()

void UWSmartOFDM::stateBackoffCTS ( )
protectedvirtual

Node is in BackoffCTS state.

Waits for a CTS from coordinator.

Definition at line 1430 of file uw-smart-ofdm.cpp.

◆ stateCheckAckExpired()

void UWSmartOFDM::stateCheckAckExpired ( )
protectedvirtual

It checks whether the ack timer is already expired while it was busy with other activities.

Definition at line 1145 of file uw-smart-ofdm.cpp.

◆ stateCheckBackoffExpired()

void UWSmartOFDM::stateCheckBackoffExpired ( )
protectedvirtual

It checks whether the backoff timer is already expired while it was busy with other activities.

Definition at line 1176 of file uw-smart-ofdm.cpp.

◆ stateCheckCTSBackoffExpired()

void UWSmartOFDM::stateCheckCTSBackoffExpired ( )
protectedvirtual

It checks whether the CTS backoff timer is already expired while it was busy with other activities.

Definition at line 1206 of file uw-smart-ofdm.cpp.

◆ stateIdle()

void UWSmartOFDM::stateIdle ( )
protectedvirtual

Node is in Idle state.

It only changes its state if it has packet(s) to transmit or it receives a packet.

Definition at line 1237 of file uw-smart-ofdm.cpp.

◆ stateRxAck()

void UWSmartOFDM::stateRxAck ( Packet *  p)
protectedvirtual

The node comes to this state if it receives an ACK packet.

After receiving an ACK packet it changes it states according to the previously stored status information.

Definition at line 1660 of file uw-smart-ofdm.cpp.

◆ stateRxBackoff()

void UWSmartOFDM::stateRxBackoff ( )
protectedvirtual

If a node start receiving a packet when it is in backoff state.

The node first freeze (or another word, hold) the backoff timer and start receiving the packet.

Definition at line 1471 of file uw-smart-ofdm.cpp.

◆ stateRxCTS()

void UWSmartOFDM::stateRxCTS ( Packet *  p)
protectedvirtual

Definition at line 1343 of file uw-smart-ofdm.cpp.

◆ stateRxData()

void UWSmartOFDM::stateRxData ( Packet *  p)
protectedvirtual

It process the packet which is received.

After receiving a packet it changes it states according to the previously stored status information.

Parameters
<i>Data</i>packet pointer

Definition at line 1609 of file uw-smart-ofdm.cpp.

◆ stateRxIdle()

void UWSmartOFDM::stateRxIdle ( )
protectedvirtual

If a node start receiving a packet in Idle state.

Definition at line 1445 of file uw-smart-ofdm.cpp.

◆ stateRxRTS()

void UWSmartOFDM::stateRxRTS ( Packet *  p)
protectedvirtual

Definition at line 1324 of file uw-smart-ofdm.cpp.

◆ stateRxWaitAck()

void UWSmartOFDM::stateRxWaitAck ( )
protectedvirtual

If a node receives any packet while it was waiting for ACK packet, it moves to this state.

The packet it is receiving can be a Data packet from another node or ACK packet.

Definition at line 1588 of file uw-smart-ofdm.cpp.

◆ stateSendCTS()

void UWSmartOFDM::stateSendCTS ( Packet *  p)
protectedvirtual

Node is in sendRTS state.

It has sent a CTS to the node.

Definition at line 1402 of file uw-smart-ofdm.cpp.

◆ stateSendRTS()

void UWSmartOFDM::stateSendRTS ( )
protectedvirtual

Node is in sendRTS state.

If a packet needs to be send and the carriers are not yet assigned to that node, an RTS is sent.

Definition at line 1287 of file uw-smart-ofdm.cpp.

◆ stateTxAck()

void UWSmartOFDM::stateTxAck ( int  dest_addr)
protectedvirtual

If the protocl uses ARQ technique, in that case, after receiving a Data packet the node sends an ACK packet.

Definition at line 1596 of file uw-smart-ofdm.cpp.

◆ stateTxData()

void UWSmartOFDM::stateTxData ( )
protectedvirtual

If a node has packet to transmits.

In such case, it moves from Idle state to data transmits state.

Definition at line 1480 of file uw-smart-ofdm.cpp.

◆ stateWaitAck()

void UWSmartOFDM::stateWaitAck ( )
protectedvirtual

After transmitting a Data packet, a node waits for the ACK packet.

Definition at line 1571 of file uw-smart-ofdm.cpp.

◆ stateWaitCTS()

void UWSmartOFDM::stateWaitCTS ( )
protectedvirtual

Node is in waitCTS state.

Waits for a CTS from coordinator.

Definition at line 1421 of file uw-smart-ofdm.cpp.

◆ stateWaitData()

void UWSmartOFDM::stateWaitData ( double  t)
protectedvirtual

Definition at line 1687 of file uw-smart-ofdm.cpp.

◆ txAck()

void UWSmartOFDM::txAck ( int  dest_addr)
protectedvirtual

This methods transmits ACK packet from MAC layer to PHY layer.

Parameters
dest_addrwhich is an integer data type.

Definition at line 1038 of file uw-smart-ofdm.cpp.

◆ txCTS()

void UWSmartOFDM::txCTS ( int  dest_addr,
int *  rcv_car,
int  bytesToSend 
)
protectedvirtual

This methods transmits CTS packet from MAC layer to PHY layer.

Parameters
dest_addrwhich is an integer data type.
rcv_carcarriers received in the RTS
bytesToSendbytes requested by RTS

Definition at line 1086 of file uw-smart-ofdm.cpp.

◆ txData()

void UWSmartOFDM::txData ( )
protectedvirtual

This method transmits Data packets from MAC layer to PHY layer.

Definition at line 1022 of file uw-smart-ofdm.cpp.

◆ txRTS()

void UWSmartOFDM::txRTS ( )
protectedvirtual

This methods transmits RTS packet from MAC layer to PHY layer.

Parameters
dest_addrwhich is an integer data type.

Definition at line 1047 of file uw-smart-ofdm.cpp.

◆ updateAckTimeout()

void UWSmartOFDM::updateAckTimeout ( double  rtt)
protectedvirtual

Like updateRTT() function.

Definition at line 492 of file uw-smart-ofdm.cpp.

◆ updateInterfTable()

void UWSmartOFDM::updateInterfTable ( Packet *  p)
protected

Definition at line 1736 of file uw-smart-ofdm.cpp.

◆ updateLastDataIdRx()

virtual void UWSmartOFDM::updateLastDataIdRx ( int  id)
inlineprotectedvirtual

It updates the sequence number of the last data packet rx.

Parameters
idis an integer data type.

Definition at line 934 of file uw-smart-ofdm.h.

◆ updateOccupancy()

void UWSmartOFDM::updateOccupancy ( int *  busyCar,
int  ntslots 
)
protected

updates occupancy table

Parameters
busyCarcarriers to update in occupancy table
ntslotsnumber of timeslots that will be reserved

Definition at line 1891 of file uw-smart-ofdm.cpp.

◆ updateRTT()

void UWSmartOFDM::updateRTT ( double  rtt)
protectedvirtual

Update the Round Trip Time (RTT) which is necessary to compute the acknowledgement duration as well as backoff duration.

Parameters
rttis a double data type.

Definition at line 483 of file uw-smart-ofdm.cpp.

◆ waitForUser()

void UWSmartOFDM::waitForUser ( )
protectedvirtual

Definition at line 1720 of file uw-smart-ofdm.cpp.

Member Data Documentation

◆ ack_mode

UWSMARTOFDM_ACK_MODES UWSmartOFDM::ack_mode
protected

Enum variable.

It tells the node whether to use ARQ technique or not.

Definition at line 1210 of file uw-smart-ofdm.h.

◆ ACK_size

int UWSmartOFDM::ACK_size
protected

Size of the ACK, if the node uses ARQ technique.

Definition at line 1120 of file uw-smart-ofdm.h.

◆ ACK_timeout

double UWSmartOFDM::ACK_timeout
protected

ACK timeout for the initial packet.

Definition at line 1124 of file uw-smart-ofdm.h.

◆ ack_timer

AckTimer UWSmartOFDM::ack_timer
protected

An object of the AckTimer class.

Definition at line 1188 of file uw-smart-ofdm.h.

◆ ackToSend

bool UWSmartOFDM::ackToSend
protected

Definition at line 1251 of file uw-smart-ofdm.h.

◆ alpha_

double UWSmartOFDM::alpha_
protected

This variable is used to tune the RTT.

Definition at line 1127 of file uw-smart-ofdm.h.

◆ assignment_timer

AssignmentTimer UWSmartOFDM::assignment_timer
protected

An object of the assignment timer class.

Definition at line 1194 of file uw-smart-ofdm.h.

◆ assignment_valid_timer

AssignmentValidTimer UWSmartOFDM::assignment_valid_timer
protected

An object of the assignment valid timer class.

Definition at line 1196 of file uw-smart-ofdm.h.

◆ backoff_timer

BackOffTimer UWSmartOFDM::backoff_timer
protected

An object of the backoff timer class.

Definition at line 1189 of file uw-smart-ofdm.h.

◆ backoff_tuner

double UWSmartOFDM::backoff_tuner
protected

Tunes the backoff duration.

Definition at line 1117 of file uw-smart-ofdm.h.

◆ batch_sending

bool UWSmartOFDM::batch_sending
protected

Definition at line 1246 of file uw-smart-ofdm.h.

◆ bitrateCar

double UWSmartOFDM::bitrateCar
protected

Definition at line 1125 of file uw-smart-ofdm.h.

◆ buffer_pkts

int UWSmartOFDM::buffer_pkts
protected

Number of packets a node can store in the container.

Definition at line 1126 of file uw-smart-ofdm.h.

◆ car_assigned

bool UWSmartOFDM::car_assigned = 0
protected

Definition at line 1144 of file uw-smart-ofdm.h.

◆ cLevel

criticalLevel UWSmartOFDM::cLevel = LOW
protected

Definition at line 1143 of file uw-smart-ofdm.h.

◆ clevel_info

map<criticalLevel, string> UWSmartOFDM::clevel_info
staticprotected

Container which stores all the packet type information of UWSmartOFDM.

Definition at line 1222 of file uw-smart-ofdm.h.

◆ coordinator

bool UWSmartOFDM::coordinator
protected

Definition at line 1142 of file uw-smart-ofdm.h.

◆ ctrl_car

int UWSmartOFDM::ctrl_car
protected

Definition at line 1140 of file uw-smart-ofdm.h.

◆ CTS_size

int UWSmartOFDM::CTS_size
protected

Size of the ACK, if the node uses SMARTOFDM.

Definition at line 1122 of file uw-smart-ofdm.h.

◆ CTS_timer

CTSTimer UWSmartOFDM::CTS_timer
protected

An object of the CTS timer class.

Definition at line 1190 of file uw-smart-ofdm.h.

◆ CTSsent

int UWSmartOFDM::CTSsent = 0
protected

Definition at line 1171 of file uw-smart-ofdm.h.

◆ curr_data_pkt

Packet* UWSmartOFDM::curr_data_pkt
protected

Pointer of the latest selected data packet.

Definition at line 1182 of file uw-smart-ofdm.h.

◆ curr_pkt_batch

int UWSmartOFDM::curr_pkt_batch
protected

Definition at line 1245 of file uw-smart-ofdm.h.

◆ curr_rts_tries

int UWSmartOFDM::curr_rts_tries
protected

Definition at line 1243 of file uw-smart-ofdm.h.

◆ curr_state

UWSMARTOFDM_STATUS UWSmartOFDM::curr_state
protected

Enum variable.

It stores the current state of a node

Definition at line 1201 of file uw-smart-ofdm.h.

◆ curr_tx_rounds

int UWSmartOFDM::curr_tx_rounds
protected

How many times a packet is transmitted.

Definition at line 1173 of file uw-smart-ofdm.h.

◆ current_macDA

int UWSmartOFDM::current_macDA
protected

Definition at line 1147 of file uw-smart-ofdm.h.

◆ current_rcvs

std::atomic<int> UWSmartOFDM::current_rcvs
protected

Definition at line 1146 of file uw-smart-ofdm.h.

◆ current_timeslot

int UWSmartOFDM::current_timeslot
protected

Definition at line 1240 of file uw-smart-ofdm.h.

◆ data_car

int UWSmartOFDM::data_car
protected

Definition at line 1141 of file uw-smart-ofdm.h.

◆ DATA_size

int UWSmartOFDM::DATA_size
protected

Size of the DATA packet, if the node uses SMARTOFDM.

Definition at line 1123 of file uw-smart-ofdm.h.

◆ DATA_timer

DATATimer UWSmartOFDM::DATA_timer
protected

An object of the DATA timer class.

Definition at line 1192 of file uw-smart-ofdm.h.

◆ fout

ofstream UWSmartOFDM::fout
protected

An object of ofstream class.

Definition at line 1230 of file uw-smart-ofdm.h.

◆ fullBand

bool UWSmartOFDM::fullBand
protected

Definition at line 1257 of file uw-smart-ofdm.h.

◆ has_buffer_queue

bool UWSmartOFDM::has_buffer_queue
protected

Whether the node has buffer to store data or not.

Definition at line 1162 of file uw-smart-ofdm.h.

◆ HDR_size

int UWSmartOFDM::HDR_size
protected

Size of the HDR if any.

Definition at line 1119 of file uw-smart-ofdm.h.

◆ high_prio_pkt_recv

int UWSmartOFDM::high_prio_pkt_recv = 0
protected

Definition at line 1178 of file uw-smart-ofdm.h.

◆ high_prio_pkt_sent

int UWSmartOFDM::high_prio_pkt_sent = 0
protected

Definition at line 1177 of file uw-smart-ofdm.h.

◆ initialized

bool UWSmartOFDM::initialized = false
staticprotected

It checks whether UWSmartOFDM protocol is initialized or not.

If FALSE means, not initialized and if TRUE means it is initialized

Definition at line 1153 of file uw-smart-ofdm.h.

◆ interf_table

std::vector<std::vector<double> > UWSmartOFDM::interf_table
protected

Definition at line 1259 of file uw-smart-ofdm.h.

◆ last_data_id_rx

int UWSmartOFDM::last_data_id_rx
protected

The sequence number of last received packet.

Definition at line 1174 of file uw-smart-ofdm.h.

◆ last_reason

UWSMARTOFDM_REASON_STATUS UWSmartOFDM::last_reason
protected

Enum variable which stores the last reason why a node changes its state.

Definition at line 1199 of file uw-smart-ofdm.h.

◆ last_sent_data_id

int UWSmartOFDM::last_sent_data_id
protected

sequence number of the last sent packet

Definition at line 1158 of file uw-smart-ofdm.h.

◆ mac_carMod

std::vector<string> UWSmartOFDM::mac_carMod
protected

Definition at line 1135 of file uw-smart-ofdm.h.

◆ mac_carrierSize

double UWSmartOFDM::mac_carrierSize
protected

Definition at line 1139 of file uw-smart-ofdm.h.

◆ mac_carVec

std::vector<int> UWSmartOFDM::mac_carVec
protected

Definition at line 1136 of file uw-smart-ofdm.h.

◆ mac_ncarriers

int UWSmartOFDM::mac_ncarriers
protected

Definition at line 1138 of file uw-smart-ofdm.h.

◆ mac_prioVec

std::vector<char> UWSmartOFDM::mac_prioVec
protected

Definition at line 1137 of file uw-smart-ofdm.h.

◆ mapAckTimer

map<pktSeqNum, AckTimer> UWSmartOFDM::mapAckTimer
protected

Container where acknowledgement timer(s) is stored.

Definition at line 1227 of file uw-smart-ofdm.h.

◆ mapPacket

map<pktSeqNum, Packet *> UWSmartOFDM::mapPacket
protected

Container where Data packets are stored.

Definition at line 1226 of file uw-smart-ofdm.h.

◆ max_aval_car

int UWSmartOFDM::max_aval_car
protected

Definition at line 1150 of file uw-smart-ofdm.h.

◆ max_backoff_counter

double UWSmartOFDM::max_backoff_counter
protected

Maximum number of backoff it will consider while it increases the backoff exponentially.

Definition at line 1128 of file uw-smart-ofdm.h.

◆ max_burst_size

int UWSmartOFDM::max_burst_size
protected

Definition at line 1244 of file uw-smart-ofdm.h.

◆ max_car_reserved

int UWSmartOFDM::max_car_reserved
protected

Definition at line 1237 of file uw-smart-ofdm.h.

◆ max_payload

int UWSmartOFDM::max_payload
protected

Maximum number of payload in a packet.

Definition at line 1118 of file uw-smart-ofdm.h.

◆ max_rts_tries

int UWSmartOFDM::max_rts_tries
protected

Definition at line 1242 of file uw-smart-ofdm.h.

◆ max_tx_tries

int UWSmartOFDM::max_tx_tries
protected

Maximum number of retransmissions attempt.

Definition at line 1114 of file uw-smart-ofdm.h.

◆ msgDisp

MsgDisplayer UWSmartOFDM::msgDisp
protected

Definition at line 1231 of file uw-smart-ofdm.h.

◆ nextAssignment

double UWSmartOFDM::nextAssignment
protected

Definition at line 1180 of file uw-smart-ofdm.h.

◆ nextFreeTime

double UWSmartOFDM::nextFreeTime
protected

Definition at line 1250 of file uw-smart-ofdm.h.

◆ nextRTS

Packet* UWSmartOFDM::nextRTS
protected

Definition at line 1255 of file uw-smart-ofdm.h.

◆ nextRTSts

double UWSmartOFDM::nextRTSts
protected

Definition at line 1256 of file uw-smart-ofdm.h.

◆ nodeNum

int UWSmartOFDM::nodeNum
protected

Definition at line 1145 of file uw-smart-ofdm.h.

◆ nouse_carriers

std::vector<int> UWSmartOFDM::nouse_carriers
protected

Definition at line 1258 of file uw-smart-ofdm.h.

◆ occupancy_table

std::vector<std::vector<int> > UWSmartOFDM::occupancy_table
protected

Definition at line 1233 of file uw-smart-ofdm.h.

◆ oTableIndex

int UWSmartOFDM::oTableIndex
protected

Definition at line 1149 of file uw-smart-ofdm.h.

◆ otabmtx

std::mutex UWSmartOFDM::otabmtx
protected

Definition at line 1234 of file uw-smart-ofdm.h.

◆ pkt_to_ack

Packet* UWSmartOFDM::pkt_to_ack
protected

Definition at line 1252 of file uw-smart-ofdm.h.

◆ pkt_type_info

map< UWSmartOFDM::UWSMARTOFDM_PKT_TYPE, string > UWSmartOFDM::pkt_type_info
staticprotected

Container which stores all the packet type information of UWSmartOFDM.

Definition at line 1219 of file uw-smart-ofdm.h.

◆ prev_prev_state

UWSMARTOFDM_STATUS UWSmartOFDM::prev_prev_state
protected

Enum variable.

It stores the previous to previous state of a node

Definition at line 1206 of file uw-smart-ofdm.h.

◆ prev_state

UWSMARTOFDM_STATUS UWSmartOFDM::prev_state
protected

Enum variable.

It stores the previous state of a node

Definition at line 1204 of file uw-smart-ofdm.h.

◆ print_transitions

bool UWSmartOFDM::print_transitions
protected

Whether to print the state of the nodes.

Definition at line 1160 of file uw-smart-ofdm.h.

◆ prop_speed

const double UWSmartOFDM::prop_speed = 1500.0
staticprotected

Speed of the sound signal.

Definition at line 1186 of file uw-smart-ofdm.h.

◆ reason_info

map< UWSmartOFDM::UWSMARTOFDM_REASON_STATUS, string > UWSmartOFDM::reason_info
staticprotected

Container which stores all the reason information.

Definition at line 1216 of file uw-smart-ofdm.h.

◆ recv_data_id

int UWSmartOFDM::recv_data_id
protected

The sequence number of the packet which is received.

Definition at line 1175 of file uw-smart-ofdm.h.

◆ req_tslots

int UWSmartOFDM::req_tslots
protected

Definition at line 1238 of file uw-smart-ofdm.h.

◆ RTS_size

int UWSmartOFDM::RTS_size
protected

Size of the ACK, if the node uses SMARTOFDM.

Definition at line 1121 of file uw-smart-ofdm.h.

◆ RTS_timer

RTSTimer UWSmartOFDM::RTS_timer
protected

An object of the RTS timer class.

Definition at line 1191 of file uw-smart-ofdm.h.

◆ RTSsent

int UWSmartOFDM::RTSsent = 0
protected

Definition at line 1170 of file uw-smart-ofdm.h.

◆ RTSvalid

bool UWSmartOFDM::RTSvalid
protected

Definition at line 1248 of file uw-smart-ofdm.h.

◆ rttsamples

int UWSmartOFDM::rttsamples
protected

Number of RTT samples.

Definition at line 1169 of file uw-smart-ofdm.h.

◆ srtt

double UWSmartOFDM::srtt
protected

Smoothed Round Trip Time, calculated as for TCP.

Definition at line 1166 of file uw-smart-ofdm.h.

◆ start_tx_time

double UWSmartOFDM::start_tx_time
protected

Time when a packet start transmitting.

Definition at line 1165 of file uw-smart-ofdm.h.

◆ status_info

map< UWSmartOFDM::UWSMARTOFDM_STATUS, string > UWSmartOFDM::status_info
staticprotected

Container which stores all the status information.

Definition at line 1212 of file uw-smart-ofdm.h.

◆ sumrtt

double UWSmartOFDM::sumrtt
protected

Sum of RTT samples.

Definition at line 1167 of file uw-smart-ofdm.h.

◆ sumrtt2

double UWSmartOFDM::sumrtt2
protected

Sum of (RTT^2)

Definition at line 1168 of file uw-smart-ofdm.h.

◆ timeslot_length

double UWSmartOFDM::timeslot_length
protected

Definition at line 1236 of file uw-smart-ofdm.h.

◆ timeslots

int UWSmartOFDM::timeslots
protected

Definition at line 1235 of file uw-smart-ofdm.h.

◆ txsn

int UWSmartOFDM::txsn
protected

Sequence number of the packet which is transmitted.

Definition at line 1184 of file uw-smart-ofdm.h.

◆ uwsmartofdm_debug

int UWSmartOFDM::uwsmartofdm_debug
protected

Debuging Flag.

Definition at line 1131 of file uw-smart-ofdm.h.

◆ wait_constant

double UWSmartOFDM::wait_constant
protected

This fixed time is used to componsate different time variations.

Definition at line 1115 of file uw-smart-ofdm.h.

◆ waitPkt

int UWSmartOFDM::waitPkt
protected

Definition at line 1253 of file uw-smart-ofdm.h.


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