DESERT 3.5.1
|
#include <uwranging_tdma.h>
Public Member Functions | |
UwRangingTDMA () | |
virtual | ~UwRangingTDMA () |
![]() | |
UwTDMA () | |
virtual | ~UwTDMA () |
virtual int | recvSyncClMsg (ClMessage *m) |
Protected Member Functions | |
virtual void | sendRange () |
virtual void | stateTxData () |
virtual void | Phy2MacEndRx (Packet *p) |
virtual void | Phy2MacStartRx (const Packet *p) |
virtual void | Mac2PhyStartTx (Packet *p) |
virtual int | command (int argc, const char *const *argv) |
![]() | |
virtual void | txData () |
virtual void | changeStatus () |
virtual void | start (double delay) |
virtual void | stop () |
virtual void | recvFromUpperLayers (Packet *p) |
virtual void | Phy2MacEndTx (const Packet *p) |
virtual void | rxPacketNotForMe (Packet *p) |
virtual void | initPkt (Packet *p) |
unsigned long int | getEpoch () |
Protected Attributes | |
int | node_id |
int | slot_id |
int | n_nodes |
int | slotidmax |
std::vector< double > | owtt_vec |
std::vector< std::vector< int > > | owtt_map |
![]() | |
UWTDMA_STATUS | transceiver_status |
int | slot_status |
int | debug_ |
int | sea_trial_ |
int | fair_mode |
int | tot_slots |
int | slot_number |
int | HDR_size |
double | frame_duration |
double | guard_time |
double | slot_duration |
double | start_time |
UwTDMATimer | tdma_timer |
std::deque< Packet * > | buffer |
std::ofstream | out_file_stats |
bool | enable |
int | max_queue_size |
int | max_packet_per_slot |
int | packet_sent_curr_slot_ |
int | drop_old_ |
std::string | name_label_ |
int | checkPriority |
Static Protected Attributes | |
static int | count_nodes = 0 |
Additional Inherited Members | |
![]() | |
enum | UWTDMA_STATUS { IDLE , TRANSMITTING , RECEIVING } |
Class that represents a UwRangingTDMA Node.
Definition at line 48 of file uwranging_tdma.h.
UwRangingTDMA::UwRangingTDMA | ( | ) |
Constructor of the UwRangingTDMA class.
Definition at line 79 of file uwranging_tdma.cpp.
|
virtual |
Destructor of the UwRangingTDMA class.
Definition at line 112 of file uwranging_tdma.cpp.
|
protectedvirtual |
TCL command interpreter.
It implements the following OTcl methods:
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters |
Reimplemented from UwTDMA.
Definition at line 212 of file uwranging_tdma.cpp.
|
protectedvirtual |
Method called when the Mac Layer start to transmit a Packet.
const | Packet* Pointer to a Packet object that rapresent the Packet in transmission |
Reimplemented from UwTDMA.
Definition at line 201 of file uwranging_tdma.cpp.
|
protectedvirtual |
Method called when the Phy Layer finish to receive a Packet.
Packet* | Pointer to an Packet object that rapresent the Packet in reception |
Reimplemented from UwTDMA.
Definition at line 166 of file uwranging_tdma.cpp.
|
protectedvirtual |
Method called when the Phy Layer start to receive a Packet.
const | Packet* Pointer to a Packet object that rapresent the Packet in reception |
Reimplemented from UwTDMA.
Definition at line 159 of file uwranging_tdma.cpp.
|
protectedvirtual |
sends the ranging packet at the beginning of my slot
Definition at line 117 of file uwranging_tdma.cpp.
|
protectedvirtual |
Change transceiver status and and start to transmit if in my slot Used when there's spare time, useful for transmitting other packtes.
Reimplemented from UwTDMA.
Definition at line 152 of file uwranging_tdma.cpp.
|
staticprotected |
counts the instantiated nodes, used for assigning node ids in default contructor
Definition at line 101 of file uwranging_tdma.h.
|
protected |
number of nodes
Definition at line 104 of file uwranging_tdma.h.
|
protected |
id of the node (0 to n_nodes-1)
Definition at line 102 of file uwranging_tdma.h.
|
protected |
of size [n_nodes][n_nodes] maps(nodeX,nodeY) -> owtt_vec index
Definition at line 108 of file uwranging_tdma.h.
|
protected |
vector of lenght D = n_nodes*(n_nodes-1)/2 + 1 where the one way travel times are stored
Definition at line 107 of file uwranging_tdma.h.
|
protected |
= node_id + k*n_nodes; slot_id value is written in the outgoing ranging packet then k is incremented
Definition at line 103 of file uwranging_tdma.h.
|
protected |
maximum slot_id allowable in packet header
Definition at line 105 of file uwranging_tdma.h.