World Ocean Simulation System (WOSS) library
WossMPhyBpsk Class Reference

BPSK modulation class with woss::Transducer power control. More...

#include <uw-woss-bpsk.h>

Inheritance diagram for WossMPhyBpsk:
Inheritance graph
Collaboration diagram for WossMPhyBpsk:
Collaboration graph

Protected Member Functions

virtual double getTxPower (Packet *p)
 
- Protected Member Functions inherited from UwMPhyBpskTransducer
virtual double consumedEnergyTx (double Ptx, double duration)
 
virtual const woss::Transducer *const getTransducer (double frequency) const
 

Additional Inherited Members

- Public Member Functions inherited from UwMPhyBpskTransducer
virtual int command (int argc, const char *const *argv)
 
- Protected Types inherited from UwMPhyBpskTransducer
typedef ::std::map< ::std::pair< double, double >, const woss::Transducer * > FreqTransducerMap
 
typedef FreqTransducerMap::iterator FTMIter
 
typedef FreqTransducerMap::const_iterator FTMCIter
 
typedef FreqTransducerMap::reverse_iterator FTMRIter
 
typedef FreqTransducerMap::const_reverse_iterator FTMRCIter
 
- Protected Attributes inherited from UwMPhyBpskTransducer
FreqTransducerMap freq_transd_map
 

Detailed Description

BPSK modulation class with woss::Transducer power control.

WossMPhyBpsk extends UwMPhyBpskTransducer replacing old tx power control based on distance.

Member Function Documentation

◆ getTxPower()

double WossMPhyBpsk::getTxPower ( Packet *  p)
protectedvirtual

It sends a synchronous cross-layer message asking for the current channel estimation. Upon valid answer it provides optimal power calculations.

Parameters
ppointer to the current Packet being processed
Returns
Tx power in uPa

References woss::Pressure::abs(), woss::Transducer::getMaxSPL(), woss::Singleton< T >::instance(), and woss::Transducer::isValid().

Here is the call graph for this function:

The documentation for this class was generated from the following files: