39#ifndef UWPHYSICALFROMDB_H
40#define UWPHYSICALFROMDB_H
70 virtual int command(
int,
const char *
const *);
ostringstream osstream_
Used to create strings.
virtual ~UnderwaterPhysicalfromdb()
Destructor of UnderwaterMPhyBpskDb class.
char * path_selfinterference
Name of the trace file writter for the current node.
char * path_gainmaps
Name of the trace file writter for the current node.
virtual double getSelfInterference(const double &_time, const double &_source_depth, const double &_destination_depth, const double &_destination_distance)
Read from the self interference.
virtual double retrieveFromFile(const string &_file_name, const int &_row_index, const int &_column_index) const
Read from a file the value in a specific row - column.
UnderwaterPhysicalfromdb()
Constructor of UnderwaterMPhyBpskDb class.
virtual string createNameFile(const char *_path, const int &_time, const int &_source_depth, const int &_tau_index)
Create the name of the file to read.
virtual double getPER(double _snr, int _nbits, Packet *p)
Return the Packet Error Rate of the packet p passed as input.
const int & getTauIndex() const
Return the value of the tau_index parameter.
int tau_index
Tau index to load in the file.
virtual double getGain(const double &_time, const double &_source_depth, const double &_destination_depth, const double &_destination_distance)
Read from the gain.
virtual int command(int, const char *const *)
TCL command interpreter.
void setTauIndex(const int &_tau_index)
Set the line_index parameter.
Definition of UnderwaterGainFromDb class.