A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::WifiSpectrumValue5MhzFactory Class Reference

Implements WifiSpectrumValue for the 2.4 GHz ISM band only, with a 5 MHz spectrum resolution. More...

#include "wifi-spectrum-value-helper.h"

+ Inheritance diagram for ns3::WifiSpectrumValue5MhzFactory:
+ Collaboration diagram for ns3::WifiSpectrumValue5MhzFactory:

Public Member Functions

virtual ~WifiSpectrumValue5MhzFactory ()
 
virtual Ptr< SpectrumValueCreateConstant (double psd)
 Creates a SpectrumValue instance which has a constant value for all frequencies. More...
 
virtual Ptr< SpectrumValueCreateRfFilter (uint32_t channel)
 Creates a pectrumValue instance which represents the frequency response of the RF filter which is used by a wifi device to receive signals when tuned to a particular channel. More...
 
virtual Ptr< SpectrumValueCreateTxPowerSpectralDensity (double txPower, uint32_t channel)
 Creates a SpectrumValue instance which represents the TX Power Spectral Density of a wifi device corresponding to the provided parameters. More...
 
- Public Member Functions inherited from ns3::WifiSpectrumValueHelper
virtual ~WifiSpectrumValueHelper ()
 

Detailed Description

Implements WifiSpectrumValue for the 2.4 GHz ISM band only, with a 5 MHz spectrum resolution.

Definition at line 85 of file wifi-spectrum-value-helper.h.

Constructor & Destructor Documentation

ns3::WifiSpectrumValue5MhzFactory::~WifiSpectrumValue5MhzFactory ( )
virtual

Definition at line 33 of file wifi-spectrum-value-helper.cc.

Member Function Documentation

Ptr< SpectrumValue > ns3::WifiSpectrumValue5MhzFactory::CreateConstant ( double  psd)
virtual

Creates a SpectrumValue instance which has a constant value for all frequencies.

Parameters
psdthe constant value
Returns
a Ptr to a newly created SpectrumValue

Implements ns3::WifiSpectrumValueHelper.

Definition at line 61 of file wifi-spectrum-value-helper.cc.

References ns3::g_WifiSpectrumModel5Mhz.

Referenced by SpectrumIdealPhyTestCase::DoRun().

+ Here is the caller graph for this function:

Ptr< SpectrumValue > ns3::WifiSpectrumValue5MhzFactory::CreateRfFilter ( uint32_t  channel)
virtual

Creates a pectrumValue instance which represents the frequency response of the RF filter which is used by a wifi device to receive signals when tuned to a particular channel.

Parameters
channelthe number of the channel
Returns
a Ptr to a newly created SpectrumValue

Implements ns3::WifiSpectrumValueHelper.

Definition at line 104 of file wifi-spectrum-value-helper.cc.

References ns3::g_WifiSpectrumModel5Mhz, and NS_ASSERT.

Ptr< SpectrumValue > ns3::WifiSpectrumValue5MhzFactory::CreateTxPowerSpectralDensity ( double  txPower,
uint32_t  channel 
)
virtual

Creates a SpectrumValue instance which represents the TX Power Spectral Density of a wifi device corresponding to the provided parameters.

Parameters
txPowerthe total TX power in W
channelthe number of the channel
Returns
a Ptr to a newly created SpectrumValue

Implements ns3::WifiSpectrumValueHelper.

Definition at line 70 of file wifi-spectrum-value-helper.cc.

References third::channel, ns3::g_WifiSpectrumModel5Mhz, and NS_ASSERT.

Referenced by SpectrumIdealPhyTestCase::DoRun().

+ Here is the caller graph for this function:


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