DESERT 3.5.1
|
#include <uwgainfromdb.h>
Public Member Functions | |
UnderwaterGainFromDb () | |
virtual | ~UnderwaterGainFromDb () |
virtual int | command (int, const char *const *) |
![]() | |
UnderwaterPhysical () | |
virtual | ~UnderwaterPhysical () |
virtual void | recv (Packet *) |
int | recvSyncClMsg (ClMessage *m) |
Protected Attributes | |
char * | path_ |
char | token_separator_ |
ostringstream | osstream_ |
![]() | |
std::string | modulation_name_ |
double | time_ready_to_end_rx_ |
double | Tx_Time_ |
double | Rx_Time_ |
double | Energy_Tx_ |
double | Energy_Rx_ |
double | Transmitted_bytes_ |
double | tx_power_ |
double | rx_power_ |
int | tot_pkts_lost |
int | tot_ctrl_pkts_lost |
int | errorCtrlPktsInterf |
int | collisionDataCTRL |
int | collisionCTRL |
int | collisionDATA |
std::string | Interference_Model |
uwinterference * | interference_ |
Private Attributes | |
int | time_roughness_ |
int | depth_roughness_ |
int | distance_roughness_ |
int | total_time_ |
double | frequency_correction_factor_ |
Definition at line 51 of file uwgainfromdb.h.
UnderwaterGainFromDb::UnderwaterGainFromDb | ( | ) |
Constructor of UnderwaterMPhyBpskDb class.
Definition at line 58 of file uwgainfromdb.cpp.
|
inlinevirtual |
Destructor of UnderwaterMPhyBpskDb class.
Definition at line 63 of file uwgainfromdb.h.
TCL command interpreter.
It implements the following OTcl methods:
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
Reimplemented from UnderwaterPhysical.
Reimplemented in UnderwaterPhysicalfromdb.
Definition at line 76 of file uwgainfromdb.cpp.
|
protectedvirtual |
Creates the name of the file to load.
time | |
depth |
Definition at line 245 of file uwgainfromdb.cpp.
Returns the depth_roughness_ parameter.
Definition at line 145 of file uwgainfromdb.h.
Returns the distance_roughness_ parameter.
Definition at line 156 of file uwgainfromdb.h.
Returns the frequency_correction_factor_ parameter.
Definition at line 178 of file uwgainfromdb.h.
|
protectedvirtual |
param
param
Reimplemented in UnderwaterPhysicalfromdb.
Definition at line 165 of file uwgainfromdb.cpp.
Returns the packet error rate by using the length of a packet and the information contained in the packet (position of the source and the destiantion.
snr | Calculated by nsmiracle with the Urick model (unused). |
nbits | length in bit of the packet. |
p | Packet by witch the module gets information about source and destination. |
Reimplemented from UnderwaterPhysical.
Reimplemented in UnderwaterPhysicalfromdb.
Definition at line 94 of file uwgainfromdb.cpp.
Returns the time_roughness_ parameter.
Definition at line 134 of file uwgainfromdb.h.
Returns the total_time_ parameter.
Definition at line 167 of file uwgainfromdb.h.
Evaluates is the number passed as input is equal to zero.
When C++ works with double and float number you can't compare them with 0. If the absolute value of the number is smaller than eplison that means that the number is equal to zero.
double& | Number to evaluate. |
Definition at line 226 of file uwgainfromdb.h.
Sets the depth_roughness_ parameter.
Roughness | of the depth samples. |
Definition at line 132 of file uwgainfromdb.cpp.
Sets the distance_roughness_ parameter.
Roughness | of the distance samples. |
Definition at line 140 of file uwgainfromdb.cpp.
|
protectedvirtual |
Sets the frequency_correction_factor_ parameter.
Frequency | correction factor. |
Definition at line 156 of file uwgainfromdb.cpp.
Sets the time_roughness_ parameter.
Roughness | of the temporal samples. |
Definition at line 124 of file uwgainfromdb.cpp.
Sets the total_time_ parameter.
Maximum | value of the temporal samples. |
Definition at line 148 of file uwgainfromdb.cpp.
|
private |
Roughness of the depth samples.
Definition at line 239 of file uwgainfromdb.h.
|
private |
Roughness of the distance samples.
Definition at line 240 of file uwgainfromdb.h.
|
private |
used to shift from a frequency value to another one.
Definition at line 243 of file uwgainfromdb.h.
|
protected |
Used to create strings.
Definition at line 234 of file uwgainfromdb.h.
|
protected |
Name of the trace file writter for the current node.
Definition at line 231 of file uwgainfromdb.h.
|
private |
Roughness of the temporal samples.
Definition at line 238 of file uwgainfromdb.h.
|
protected |
Token used to parse the elements in a line of the database.
Definition at line 232 of file uwgainfromdb.h.
|
private |
Maximum value of the temporal samples, after this limit the smilulation time will be reset to zero.
Definition at line 241 of file uwgainfromdb.h.