39#ifndef UWPHYSICALNOISE_H
40#define UWPHYSICALNOISE_H
70 virtual int command(
int argc,
const char *
const *argv)
override;
134 std::vector<Noisesource>
virtual int command(int argc, const char *const *argv) override
TCL command interpreter.
int ship_stop
If enabled, the speed is set to zero when the ship reaches its destination.
virtual void removeNoiseSourcefromID(size_t id)
It removes the noise emitter corresponding to the given id.
virtual ~UnderwaterPhysicalNoise()=default
Destructor of UnderwaterPhysicalNoise class.
virtual void addNoiseSource(size_t id, double len, ship_noise::ShipCategory cat, Position *pos)
It adds the noise emitter corresponding to the given id.
static constexpr const double MS_TO_KNOTS
Conversion m/s to knots.
virtual double getSpeedKnots(Position *p) const
Compute the speed of the vessel in knots.
UnderwaterPhysicalNoise()
Constructor of UnderwaterPhysicalNoise class.
std::vector< Noisesource > noise_src
Vector that stores all the vessels.
double granularity
Number of step for the integration.
virtual double vesselNoisePower(Packet *p)
It calculates the total noise power, iterating on the vessel map.
virtual double getNoisePower(Packet *p) override
Compute the noise power, considering also vessels noise if needed.
ShipCategory
Enum type representing the ship categories.
Functions to compute the noise power spectral density for different type of ships and auv.
Struct that contains the parameters of a vessel.
ship_noise::ShipCategory category
Definition of UwPhysical class.
Provides the definition of the class UWSMPosition.