77 virtual int command(
int,
const char *
const *);
177 inline const double &
192 const double &,
const double &,
const double &,
const double &);
202 const string &,
const int &,
const int &)
const;
228 return std::fabs(
value) < std::numeric_limits<double>::epsilon();
double frequency_correction_factor_
used to shift from a frequency value to another one.
const bool isZero(const double &value) const
Evaluates is the number passed as input is equal to zero.
const int & getDepthRoughness() const
Returns the depth_roughness_ parameter.
int time_roughness_
Roughness of the temporal samples.
virtual void setDistanceRoughness(const int &)
Sets the distance_roughness_ parameter.
char * path_
Name of the trace file writter for the current node.
const int & getDistanceRoughness() const
Returns the distance_roughness_ parameter.
const int & getTimeRoughness() const
Returns the time_roughness_ parameter.
virtual int command(int, const char *const *)
TCL command interpreter.
virtual void setTotalTime(const int &)
Sets the total_time_ parameter.
ostringstream osstream_
Used to create strings.
virtual void setTimeRoughness(const int &)
Sets the time_roughness_ parameter.
int depth_roughness_
Roughness of the depth samples.
virtual void setDepthRoughness(const int &)
Sets the depth_roughness_ parameter.
const double & getFrequencyCorrectionFactor() const
Returns the frequency_correction_factor_ parameter.
virtual void setFrequencyCorrectionFactor(const double &)
Sets the frequency_correction_factor_ parameter.
virtual ~UnderwaterGainFromDb()
Destructor of UnderwaterMPhyBpskDb class.
virtual double retriveGainFromFile(const string &, const int &, const int &) const
virtual double getPER(double snr, int nbits, Packet *p)
Returns the packet error rate by using the length of a packet and the information contained in the pa...
virtual double getGain(const double &, const double &, const double &, const double &)
int total_time_
Maximum value of the temporal samples, after this limit the smilulation time will be reset to zero.
UnderwaterGainFromDb()
Constructor of UnderwaterMPhyBpskDb class.
const int & getTotalTime() const
Returns the total_time_ parameter.
int distance_roughness_
Roughness of the distance samples.
virtual string createNameFile(const int &, const int &)
Creates the name of the file to load.
char token_separator_
Token used to parse the elements in a line of the database.
Definition of UwPhysical class.