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

#include <uw-mac-TLohi.h>

Inheritance diagram for MMacTLOHI:
Collaboration diagram for MMacTLOHI:

Public Member Functions

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

Protected Member Functions

virtual void recvFromUpperLayers (Packet *p)
 
virtual void Phy2MacEndTx (const Packet *p)
 
virtual void Phy2MacStartRx (const Packet *p)
 
virtual void Phy2MacEndRx (Packet *p)
 
virtual double computeTxTime (TLOHI_PKT_TYPE type)
 
virtual void initPkt (Packet *p, TLOHI_PKT_TYPE pkt_type)
 
virtual void getBackoffTime ()
 
virtual double getCRduration ()
 
virtual void checkDataPhy ()
 
virtual int countContenders (double time)
 
virtual void txTone ()
 
virtual void txData ()
 
virtual void txAck ()
 
virtual void rxTone (Packet *p)
 
virtual void rxAck (Packet *p)
 
virtual void rxElse (Packet *p)
 
virtual void stateIdle ()
 
virtual void stateBackoff ()
 
virtual void stateStartContention ()
 
virtual void stateWaitEndContention ()
 
virtual void stateCountContenders ()
 
virtual void stateTxData ()
 
virtual void stateSleep ()
 
virtual void stateWaitAck ()
 
virtual void stateWaitXAck ()
 
virtual void stateDataReceived (Packet *data_pkt)
 
virtual void stateTxAck ()
 
virtual void stateRecontendWindow ()
 
virtual void stateWaitCR ()
 
virtual void printStateInfo (double delay=0)
 
virtual void initInfo ()
 
virtual void initData ()
 
virtual void initMphyIds ()
 
virtual void refreshState (TLOHI_STATUS state)
 
virtual void refreshReason (TLOHI_REASON_STATUS reason)
 
virtual void exitBackoff ()
 
virtual void setDestAddr (int mac_addr)
 
virtual void setSessionDistance (double distance)
 
virtual void checkPhyInit ()
 
virtual void incrCurrTxRounds ()
 
virtual void resetSession ()
 
virtual void queuePop (bool flag)
 
virtual void waitForUser ()
 
virtual void incrTonePktsTx ()
 
virtual void incrTonePktsRx ()
 
virtual void incrCurrTxTries ()
 
virtual void resetStats ()
 
virtual int getRemainingPkts ()
 
virtual int getTonePktsTx ()
 
virtual int getTonePktsRx ()
 
virtual int getUpLayersDataPktsRx ()
 

Protected Attributes

int tone_pkts_tx
 
int tone_pkts_rx
 
double max_prop_delay
 
int max_tx_rounds
 
double max_tx_tries
 
double backoff_tuner
 
double wait_costant
 
int max_payload
 
int HDR_size
 
int ACK_size
 
double sleep_timeout
 
double DATA_listen_timeout
 
double ACK_timeout
 
double recontend_time
 
double tone_data_delay
 
int buffer_pkts
 
queue< Packet * > Q
 
bool TxActive
 
bool session_active
 
bool backoff_pending
 
bool tone_transmitted
 
bool print_transitions
 
bool mphy_ids_initialized
 
bool has_buffer_queue
 
TLOHI_ACK_MODE ack_mode
 
TLOHI_MODE op_mode
 
int tone_phy_id
 
int data_phy_id
 
double CR_duration
 
int curr_dest_addr
 
int last_data_id_tx
 
int last_data_id_rx
 
Packet * curr_data_pkt
 
int curr_contenders
 
int curr_tx_rounds
 
int curr_tx_tries
 
TLOHI_REASON_STATUS last_reason
 
TLOHI_STATUS curr_state
 
TLOHI_STATUS prev_state
 
double session_distance
 
double backoff_start_time
 
double backoff_duration
 
double backoff_remaining
 
int u_data_id
 
int txsn
 
string tcl_modulation
 
Timer timer
 
DataTimer data_phy_timer
 
ofstream fout
 

Static Protected Attributes

static bool initialized = false
 
static int u_pkt_id
 
static map< TLOHI_STATUS, string > status_info
 
static map< TLOHI_REASON_STATUS, string > reason_info
 
static map< TLOHI_PKT_TYPE, string > pkt_type_info
 

Friends

class Timer
 
class DataTimer
 

Detailed Description

Class that represents the T-LOHI MAC protocol for a node.

Definition at line 239 of file uw-mac-TLohi.h.

Constructor & Destructor Documentation

◆ MMacTLOHI()

MMacTLOHI::MMacTLOHI ( )

Constructor of the class.

Definition at line 224 of file uw-mac-TLohi.cpp.

◆ ~MMacTLOHI()

MMacTLOHI::~MMacTLOHI ( )
virtual

Destructor of the class.

Definition at line 279 of file uw-mac-TLohi.cpp.

Member Function Documentation

◆ checkDataPhy()

void MMacTLOHI::checkDataPhy ( )
protectedvirtual

Checks if the PHY layer for Data is active.

If not, actives it for a fixed amout of time

Definition at line 1122 of file uw-mac-TLohi.cpp.

◆ checkPhyInit()

void MMacTLOHI::checkPhyInit ( )
protectedvirtual

Checks if the PHY layers (for DATA and TONE) are initialized.

Definition at line 405 of file uw-mac-TLohi.cpp.

◆ command()

int MMacTLOHI::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 285 of file uw-mac-TLohi.cpp.

◆ computeTxTime()

double MMacTLOHI::computeTxTime ( TLOHI_PKT_TYPE  type)
protectedvirtual

Computes the Transmission Time of a Packet using a CrLayer Message to ask the PHY to perform this calculation.

Parameters
TLOHI_PKT_TYPEtype of the packet

Definition at line 565 of file uw-mac-TLohi.cpp.

◆ countContenders()

int MMacTLOHI::countContenders ( double  time)
protectedvirtual

Returns the number of Contenders in this Contention Round based on the number of tones received.

Parameters
doubletime interval at which count the contenders
Returns
the number of contenders

Definition at line 710 of file uw-mac-TLohi.cpp.

◆ crLayCommand()

int MMacTLOHI::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 391 of file uw-mac-TLohi.cpp.

◆ exitBackoff()

void MMacTLOHI::exitBackoff ( )
protectedvirtual

Reset the timer for Backoff (i.e.

after the reception of an ACK packet

Definition at line 600 of file uw-mac-TLohi.cpp.

◆ getBackoffTime()

void MMacTLOHI::getBackoffTime ( )
protectedvirtual

Performs the calculation of the Backoff timer.

Definition at line 610 of file uw-mac-TLohi.cpp.

◆ getCRduration()

virtual double MMacTLOHI::getCRduration ( )
inlineprotectedvirtual

Returns the duration of the Contention Round, where the nodes contend the channel.

Returns
CR_duration

Definition at line 327 of file uw-mac-TLohi.h.

◆ getRemainingPkts()

virtual int MMacTLOHI::getRemainingPkts ( )
inlineprotectedvirtual

returns the number of Packet remained in the queue at the end of the simulation

Returns
number of packet remained in the queue

Definition at line 565 of file uw-mac-TLohi.h.

◆ getTonePktsRx()

virtual int MMacTLOHI::getTonePktsRx ( )
inlineprotectedvirtual

returns the number of tones received in the simulation

Returns
number of tones received

Definition at line 583 of file uw-mac-TLohi.h.

◆ getTonePktsTx()

virtual int MMacTLOHI::getTonePktsTx ( )
inlineprotectedvirtual

returns the number of tones transmitted in the simulation

Returns
number of tones transmitted

Definition at line 574 of file uw-mac-TLohi.h.

◆ getUpLayersDataPktsRx()

virtual int MMacTLOHI::getUpLayersDataPktsRx ( )
inlineprotectedvirtual

Definition at line 589 of file uw-mac-TLohi.h.

◆ incrCurrTxRounds()

virtual void MMacTLOHI::incrCurrTxRounds ( )
inlineprotectedvirtual

Increments the number of times a packet has been transmitted.

Definition at line 497 of file uw-mac-TLohi.h.

◆ incrCurrTxTries()

virtual void MMacTLOHI::incrCurrTxTries ( )
inlineprotectedvirtual

Increments the number of tries for the transmission of a packet.

Definition at line 545 of file uw-mac-TLohi.h.

◆ incrTonePktsRx()

virtual void MMacTLOHI::incrTonePktsRx ( )
inlineprotectedvirtual

Increments the number of the TONE received.

Definition at line 537 of file uw-mac-TLohi.h.

◆ incrTonePktsTx()

virtual void MMacTLOHI::incrTonePktsTx ( )
inlineprotectedvirtual

Increments the number of the TONE sended.

Definition at line 529 of file uw-mac-TLohi.h.

◆ initData()

void MMacTLOHI::initData ( )
protectedvirtual

Initializes the information of the protocol related to the data PHY layers (i.e.

the duration of the timers, the length of the buffers for data packets)

Definition at line 416 of file uw-mac-TLohi.cpp.

◆ initInfo()

void MMacTLOHI::initInfo ( )
protectedvirtual

Initializes the map between the protocol states and the textual description of these states.

Definition at line 449 of file uw-mac-TLohi.cpp.

◆ initMphyIds()

void MMacTLOHI::initMphyIds ( )
protectedvirtual

Initializes the ID of the PHY layer for tone and Data.

Definition at line 504 of file uw-mac-TLohi.cpp.

◆ initPkt()

void MMacTLOHI::initPkt ( Packet *  p,
TLOHI_PKT_TYPE  pkt_type 
)
protectedvirtual

Init 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 665 of file uw-mac-TLohi.cpp.

◆ Phy2MacEndRx()

void MMacTLOHI::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 841 of file uw-mac-TLohi.cpp.

◆ Phy2MacEndTx()

void MMacTLOHI::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 737 of file uw-mac-TLohi.cpp.

◆ Phy2MacStartRx()

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

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 818 of file uw-mac-TLohi.cpp.

◆ printStateInfo()

void MMacTLOHI::printStateInfo ( double  delay = 0)
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 1365 of file uw-mac-TLohi.cpp.

◆ queuePop()

virtual void MMacTLOHI::queuePop ( bool  flag)
inlineprotectedvirtual

Pop the first element of the data packets queue.

Definition at line 511 of file uw-mac-TLohi.h.

◆ recvFromUpperLayers()

void MMacTLOHI::recvFromUpperLayers ( Packet *  p)
protectedvirtual

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

IP)

Parameters
Packet*pointer to the packet received

Definition at line 632 of file uw-mac-TLohi.cpp.

◆ refreshReason()

virtual void MMacTLOHI::refreshReason ( TLOHI_REASON_STATUS  reason)
inlineprotectedvirtual

Refresh the reason for the change of state of the protocol.

Definition at line 465 of file uw-mac-TLohi.h.

◆ refreshState()

virtual void MMacTLOHI::refreshState ( TLOHI_STATUS  state)
inlineprotectedvirtual

Refresh the state of the protocol.

Definition at line 456 of file uw-mac-TLohi.h.

◆ resetSession()

void MMacTLOHI::resetSession ( )
protectedvirtual

Resets the variable related to the Session (i.e.

the distance between transmitter and receiver, the MAC address of the destination

Definition at line 556 of file uw-mac-TLohi.cpp.

◆ resetStats()

virtual void MMacTLOHI::resetStats ( )
inlineprotectedvirtual

Resets the variables related to the Statiscal computation.

Definition at line 553 of file uw-mac-TLohi.h.

◆ rxAck()

void MMacTLOHI::rxAck ( Packet *  p)
protectedvirtual

Method that receive an ACK packet.

Parameters
Packet*pointer to the ACK packet received

Definition at line 1069 of file uw-mac-TLohi.cpp.

◆ rxElse()

void MMacTLOHI::rxElse ( Packet *  p)
protectedvirtual

Receives other types of packets.

Parameters
Packet*pointer to packet received

Definition at line 1074 of file uw-mac-TLohi.cpp.

◆ rxTone()

void MMacTLOHI::rxTone ( Packet *  p)
protectedvirtual

Method that receives a Tone.

Parameters
Packet*pointer to the tone received

Definition at line 984 of file uw-mac-TLohi.cpp.

◆ setDestAddr()

virtual void MMacTLOHI::setDestAddr ( int  mac_addr)
inlineprotectedvirtual

Store the MAC address of the destination for this session.

Definition at line 477 of file uw-mac-TLohi.h.

◆ setSessionDistance()

virtual void MMacTLOHI::setSessionDistance ( double  distance)
inlineprotectedvirtual

Set the distance between transmitter and receiver for this session.

Definition at line 485 of file uw-mac-TLohi.h.

◆ stateBackoff()

void MMacTLOHI::stateBackoff ( )
protectedvirtual

The node is in Backoff state.

Definition at line 1188 of file uw-mac-TLohi.cpp.

◆ stateCountContenders()

void MMacTLOHI::stateCountContenders ( )
protectedvirtual

The node counts the contenders in the CR.

Definition at line 1218 of file uw-mac-TLohi.cpp.

◆ stateDataReceived()

void MMacTLOHI::stateDataReceived ( Packet *  data_pkt)
protectedvirtual

A data packet is received.

Definition at line 1340 of file uw-mac-TLohi.cpp.

◆ stateIdle()

void MMacTLOHI::stateIdle ( )
protectedvirtual

IDLE state of the protocol.

Definition at line 1130 of file uw-mac-TLohi.cpp.

◆ stateRecontendWindow()

void MMacTLOHI::stateRecontendWindow ( )
protectedvirtual

Calculate the duration of the RecontendWindow.

Definition at line 1316 of file uw-mac-TLohi.cpp.

◆ stateSleep()

void MMacTLOHI::stateSleep ( )
protectedvirtual

Simulate the sleep modality of the PHY layer of the node, while the node is waiting for the DATA.

Definition at line 1250 of file uw-mac-TLohi.cpp.

◆ stateStartContention()

void MMacTLOHI::stateStartContention ( )
protectedvirtual

The node starts the Contention sending a Tone.

Definition at line 1168 of file uw-mac-TLohi.cpp.

◆ stateTxAck()

void MMacTLOHI::stateTxAck ( )
protectedvirtual

The node transmit the ACK packet for a received DATA packet (in ACK_MODE modality)

Definition at line 1301 of file uw-mac-TLohi.cpp.

◆ stateTxData()

void MMacTLOHI::stateTxData ( )
protectedvirtual

The node has won the CR.

He can now sends a DATA packet

Definition at line 1260 of file uw-mac-TLohi.cpp.

◆ stateWaitAck()

void MMacTLOHI::stateWaitAck ( )
protectedvirtual

The node has just sent a DATA packet.

Now he's waiting for the ACK (in ACK_MODE modality)

Definition at line 1274 of file uw-mac-TLohi.cpp.

◆ stateWaitCR()

void MMacTLOHI::stateWaitCR ( )
protectedvirtual

Set the duration of the timer of the duration of the Contention Round.

Definition at line 1239 of file uw-mac-TLohi.cpp.

◆ stateWaitEndContention()

void MMacTLOHI::stateWaitEndContention ( )
protectedvirtual

The nodes waits the end of Contention listening the channel for possible contenders.

Definition at line 1205 of file uw-mac-TLohi.cpp.

◆ stateWaitXAck()

void MMacTLOHI::stateWaitXAck ( )
protectedvirtual

The node has just received a DATA packet intended for another node.

Now he's waiting for the ACK from the receiver of the DATA packet (in ACK_MODE modality)

Definition at line 1287 of file uw-mac-TLohi.cpp.

◆ txAck()

void MMacTLOHI::txAck ( )
protectedvirtual

Send a ACK packet of the data PHY layer.

Definition at line 1109 of file uw-mac-TLohi.cpp.

◆ txData()

void MMacTLOHI::txData ( )
protectedvirtual

Send a DATA packet to the data PHY layer.

Definition at line 1091 of file uw-mac-TLohi.cpp.

◆ txTone()

void MMacTLOHI::txTone ( )
protectedvirtual

Send the Tone to the tone PHY layer.

Definition at line 1079 of file uw-mac-TLohi.cpp.

◆ waitForUser()

void MMacTLOHI::waitForUser ( )
protectedvirtual

Used for debug purposes (permits a step-by-step behaviour of the protocol.

Definition at line 1390 of file uw-mac-TLohi.cpp.

Friends And Related Symbol Documentation

◆ DataTimer

friend class DataTimer
friend

DataTimer class.

Definition at line 248 of file uw-mac-TLohi.h.

◆ Timer

friend class Timer
friend

Timer class.

Definition at line 244 of file uw-mac-TLohi.h.

Member Data Documentation

◆ ack_mode

TLOHI_ACK_MODE MMacTLOHI::ack_mode
protected

ACK mode of the protocol.

Definition at line 638 of file uw-mac-TLohi.h.

◆ ACK_size

int MMacTLOHI::ACK_size
protected

Size of the ACK packet in bytes.

Definition at line 610 of file uw-mac-TLohi.h.

◆ ACK_timeout

double MMacTLOHI::ACK_timeout
protected

Time needed for the reception of a ACK packet.

Definition at line 614 of file uw-mac-TLohi.h.

◆ backoff_duration

double MMacTLOHI::backoff_duration
protected

Duration of the backoff timer.

Definition at line 663 of file uw-mac-TLohi.h.

◆ backoff_pending

bool MMacTLOHI::backoff_pending
protected

Flag that indicates if a backoff timer is pending.

Definition at line 624 of file uw-mac-TLohi.h.

◆ backoff_remaining

double MMacTLOHI::backoff_remaining
protected

Remaining time of the backoff (if the timer has been freezed)

Definition at line 664 of file uw-mac-TLohi.h.

◆ backoff_start_time

double MMacTLOHI::backoff_start_time
protected

Timestamp of the backoff start time.

Definition at line 662 of file uw-mac-TLohi.h.

◆ backoff_tuner

double MMacTLOHI::backoff_tuner
protected

Multiplier factor in the calculation of the backoff.

Definition at line 605 of file uw-mac-TLohi.h.

◆ buffer_pkts

int MMacTLOHI::buffer_pkts
protected

Buffer capacity in number of packets.

Definition at line 617 of file uw-mac-TLohi.h.

◆ CR_duration

double MMacTLOHI::CR_duration
protected

Contention Round Duration.

Definition at line 643 of file uw-mac-TLohi.h.

◆ curr_contenders

int MMacTLOHI::curr_contenders
protected

Number of contenders in current Contention Round.

Definition at line 649 of file uw-mac-TLohi.h.

◆ curr_data_pkt

Packet* MMacTLOHI::curr_data_pkt
protected

Pointer to the current data packet.

Definition at line 648 of file uw-mac-TLohi.h.

◆ curr_dest_addr

int MMacTLOHI::curr_dest_addr
protected

Current destination MAC address.

Definition at line 645 of file uw-mac-TLohi.h.

◆ curr_state

TLOHI_STATUS MMacTLOHI::curr_state
protected

Current state of the protocol.

Definition at line 656 of file uw-mac-TLohi.h.

◆ curr_tx_rounds

int MMacTLOHI::curr_tx_rounds
protected

Number of current transmission round.

Definition at line 651 of file uw-mac-TLohi.h.

◆ curr_tx_tries

int MMacTLOHI::curr_tx_tries
protected

Number of current transmission tries.

Definition at line 652 of file uw-mac-TLohi.h.

◆ DATA_listen_timeout

double MMacTLOHI::DATA_listen_timeout
protected

Time needed for the reception of a DATA packet.

Definition at line 612 of file uw-mac-TLohi.h.

◆ data_phy_id

int MMacTLOHI::data_phy_id
protected

ID of the DATA PHY layer.

Definition at line 642 of file uw-mac-TLohi.h.

◆ data_phy_timer

DataTimer MMacTLOHI::data_phy_timer
protected

Timer that describe the time needed to receive the packet (i.e.

the data PHY layer wake up for the duration of the reception, then go to sleep again

Definition at line 675 of file uw-mac-TLohi.h.

◆ fout

ofstream MMacTLOHI::fout
protected

Object that handle the output file for the state transition of the protocol.

Definition at line 691 of file uw-mac-TLohi.h.

◆ has_buffer_queue

bool MMacTLOHI::has_buffer_queue
protected

Flag that indicates whether the node has a buffer queue.

Definition at line 635 of file uw-mac-TLohi.h.

◆ HDR_size

int MMacTLOHI::HDR_size
protected

Dimension of the header added by T-LOHI in bytes.

Definition at line 609 of file uw-mac-TLohi.h.

◆ initialized

bool MMacTLOHI::initialized = false
staticprotected

Flag that indicates if the protocol is initialized.

Definition at line 631 of file uw-mac-TLohi.h.

◆ last_data_id_rx

int MMacTLOHI::last_data_id_rx
protected

Last data packet transmitted ID.

Definition at line 647 of file uw-mac-TLohi.h.

◆ last_data_id_tx

int MMacTLOHI::last_data_id_tx
protected

Last data packet received ID.

Definition at line 646 of file uw-mac-TLohi.h.

◆ last_reason

TLOHI_REASON_STATUS MMacTLOHI::last_reason
protected

Last reason for state transition of the protocol.

Definition at line 654 of file uw-mac-TLohi.h.

◆ max_payload

int MMacTLOHI::max_payload
protected

Maximum Data payload dimension in number of bytes.

Definition at line 608 of file uw-mac-TLohi.h.

◆ max_prop_delay

double MMacTLOHI::max_prop_delay
protected

Maximum propagation delay in the network.

Definition at line 602 of file uw-mac-TLohi.h.

◆ max_tx_rounds

int MMacTLOHI::max_tx_rounds
protected

Maximum transmission round for one packet.

Definition at line 603 of file uw-mac-TLohi.h.

◆ max_tx_tries

double MMacTLOHI::max_tx_tries
protected

Maximum transmission tries for one packet.

Definition at line 604 of file uw-mac-TLohi.h.

◆ mphy_ids_initialized

bool MMacTLOHI::mphy_ids_initialized
protected

Flag that indicates if the IDs of the PHY layers is stored.

Definition at line 633 of file uw-mac-TLohi.h.

◆ op_mode

TLOHI_MODE MMacTLOHI::op_mode
protected

Operational mode of the protocol.

Definition at line 639 of file uw-mac-TLohi.h.

◆ pkt_type_info

map< TLOHI_PKT_TYPE, string > MMacTLOHI::pkt_type_info
staticprotected

Map between the pkt-type and the description of the packet.

Definition at line 686 of file uw-mac-TLohi.h.

◆ prev_state

TLOHI_STATUS MMacTLOHI::prev_state
protected

Previous state of the protocol.

Definition at line 657 of file uw-mac-TLohi.h.

◆ print_transitions

bool MMacTLOHI::print_transitions
protected

Flat that indicates if the modality in which the protocol write in a file the state transitions is active.

Definition at line 628 of file uw-mac-TLohi.h.

◆ Q

queue<Packet *> MMacTLOHI::Q
protected

MAC queue used for packet scheduling.

Definition at line 619 of file uw-mac-TLohi.h.

◆ reason_info

map< TLOHI_REASON_STATUS, string > MMacTLOHI::reason_info
staticprotected

Map between the reason for state transitions and the description of this reason.

Definition at line 684 of file uw-mac-TLohi.h.

◆ recontend_time

double MMacTLOHI::recontend_time
protected

Time needed for the recontention.

Definition at line 615 of file uw-mac-TLohi.h.

◆ session_active

bool MMacTLOHI::session_active
protected

Flag that indicates if a Session is active.

Definition at line 622 of file uw-mac-TLohi.h.

◆ session_distance

double MMacTLOHI::session_distance
protected

Distance between transmitter and receiver in this session.

Definition at line 659 of file uw-mac-TLohi.h.

◆ sleep_timeout

double MMacTLOHI::sleep_timeout
protected

Duration of the sleep phase for the PHY layer.

Definition at line 611 of file uw-mac-TLohi.h.

◆ status_info

map< TLOHI_STATUS, string > MMacTLOHI::status_info
staticprotected

Map between the state and the textual description of the state.

Definition at line 681 of file uw-mac-TLohi.h.

◆ tcl_modulation

string MMacTLOHI::tcl_modulation
protected

Type of modulation adopted for data PHY layer.

Definition at line 671 of file uw-mac-TLohi.h.

◆ timer

Timer MMacTLOHI::timer
protected

timer for Contention Round

Definition at line 673 of file uw-mac-TLohi.h.

◆ tone_data_delay

double MMacTLOHI::tone_data_delay
protected

Not used anymore.

Definition at line 616 of file uw-mac-TLohi.h.

◆ tone_phy_id

int MMacTLOHI::tone_phy_id
protected

ID of the tone PHY layer.

Definition at line 641 of file uw-mac-TLohi.h.

◆ tone_pkts_rx

int MMacTLOHI::tone_pkts_rx
protected

Number of tone received.

Definition at line 596 of file uw-mac-TLohi.h.

◆ tone_pkts_tx

int MMacTLOHI::tone_pkts_tx
protected

Number of tone transmitted.

Definition at line 595 of file uw-mac-TLohi.h.

◆ tone_transmitted

bool MMacTLOHI::tone_transmitted
protected

Flag that indicates if a tone has been transmitted.

Definition at line 626 of file uw-mac-TLohi.h.

◆ TxActive

bool MMacTLOHI::TxActive
protected

Flag that indicates if a transmission is occuring.

Definition at line 621 of file uw-mac-TLohi.h.

◆ txsn

int MMacTLOHI::txsn
protected

Transmitted data serial number.

Definition at line 669 of file uw-mac-TLohi.h.

◆ u_data_id

int MMacTLOHI::u_data_id
protected

simulation-unique data packet ID

Definition at line 668 of file uw-mac-TLohi.h.

◆ u_pkt_id

int MMacTLOHI::u_pkt_id
staticprotected

simulation-unique packet ID

Definition at line 667 of file uw-mac-TLohi.h.

◆ wait_costant

double MMacTLOHI::wait_costant
protected

Additive factor in the calculation of ACK timer.

Definition at line 607 of file uw-mac-TLohi.h.


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