87 virtual int command(
int,
const char *
const *);
89 virtual void recv(Packet *);
92 virtual void endRx(Packet *p);
102 virtual double getPERfromSNR(
const double &,
const int &,
const Packet *);
111 virtual double getPERfromSIR(
const double &,
const double &);
123 const std::string &,
const double &)
const;
140 return std::fabs(_value) < std::numeric_limits<double>::epsilon();
161 std::map<uint8_t, std::set<double> >
163 std::map<uint8_t, string>
165 std::map<string, uint8_t>
UnderwaterPhysicaldb()
Constructor of UnderwaterMPhyBpskDb class.
virtual double getPERfromSIR(const double &, const double &)
Packet error rate based on Overlap and SIR.
string modulation
Name of the Modulation.
virtual void recv(Packet *)
recv method.
char token_separator
Token used to parse the elements in a line of the database.
std::pair< double, double > interf_val
(SIR, Overlap)
virtual double getNearestNeighbor(const std::set< double > &, const double &)
Nearest neighbor of a value contained in a set.
virtual double getPERfromSNR(const double &, const int &, const Packet *)
Packet error rate based on SNR.
std::set< double > overlap
Set of the available Overlaps.
uwinterference * interference_
Interference Model.
virtual ~UnderwaterPhysicaldb()
Destructor of UnderwaterMPhyBpskDb class.
virtual void endRx(Packet *p)
Handles the end of a packet reception.
uint8_t ipAddr_
IP of the node.
string country
Name of the Country.
std::map< string, uint8_t > range_nums
Set of the number of ranges for a given pathtype, e.g "AA".
virtual int command(int, const char *const *)
TCL command interpreter.
std::set< double > snr
Set of the available SNRs.
char * path_
Name of the trace file writter for the current node.
virtual const double retrievePerFromFile(const std::string &, const double &) const
const bool isZero(const double &_value) const
Evaluates is the number passed as input is equal to zero.
const double fromKmToMiles(const double &_km) const
Converts from kilometers to miles.
std::map< uint8_t, std::set< double > > range
Set of the available Ranges.
std::map< uint8_t, string > type_of_node
Set of the available type of nodes.
std::set< double > sir
Set of the available SIRs.
static const double FROMKMTOMILES
Implementation of uwinterference class.
Provides the UWIP packets header description. Definition of the class that define the network layer.
Definition of UwPhysical class.