ns-3
ns3::LteSpectrumValueHelper Class Reference

This class defines all functions to create spectrum model for lte. More...

#include <lte-spectrum-value-helper.h>

List of all members.

Static Public Member Functions

static double GetCarrierFrequency (uint16_t earfcn)
static double GetDownlinkCarrierFrequency (uint16_t earfcn)
static double GetUplinkCarrierFrequency (uint16_t earfcn)
static double GetChannelBandwidth (uint8_t txBandwidthConf)
static Ptr< SpectrumModelGetSpectrumModel (uint16_t earfcn, uint8_t bandwdith)
static Ptr< SpectrumValueCreateTxPowerSpectralDensity (uint16_t earfcn, uint8_t bandwdith, double powerTx, std::vector< int > activeRbs)
static Ptr< SpectrumValueCreateNoisePowerSpectralDensity (uint16_t earfcn, uint8_t bandwdith, double noiseFigure)
static Ptr< SpectrumValueCreateNoisePowerSpectralDensity (double noiseFigure, Ptr< SpectrumModel > spectrumModel)

Detailed Description

This class defines all functions to create spectrum model for lte.


Member Function Documentation

Ptr< SpectrumValue > ns3::LteSpectrumValueHelper::CreateNoisePowerSpectralDensity ( uint16_t  earfcn,
uint8_t  bandwdith,
double  noiseFigure 
)
static

create a SpectrumValue that models the power spectral density of AWGN

Parameters:
earfcnthe carrier frequency (EARFCN) at which reception is made
bandwidththe Transmission Bandwidth Configuration in number of resource blocks
noiseFigurethe noise figure in dB w.r.t. a reference temperature of 290K
Returns:
a pointer to a newly allocated SpectrumValue representing the noise Power Spectral Density in W/Hz for each Resource Block

References GetSpectrumModel(), and NS_LOG_FUNCTION.

Referenced by ns3::LteEnbPhy::DoStart(), and ns3::LteUePhy::DoStart().

Ptr< SpectrumValue > ns3::LteSpectrumValueHelper::CreateNoisePowerSpectralDensity ( double  noiseFigure,
Ptr< SpectrumModel spectrumModel 
)
static

create a SpectrumValue that models the power spectral density of AWGN

Parameters:
noiseFigurethe noise figure in dB w.r.t. a reference temperature of 290K
spectrumModelthe SpectrumModel instance to be used
Returns:
a pointer to a newly allocated SpectrumValue representing the noise Power Spectral Density in W/Hz for each Resource Block

References NS_LOG_FUNCTION.

Ptr< SpectrumValue > ns3::LteSpectrumValueHelper::CreateTxPowerSpectralDensity ( uint16_t  earfcn,
uint8_t  bandwdith,
double  powerTx,
std::vector< int >  activeRbs 
)
static

create a spectrum value representing the power spectral density of a signal to be transmitted. See 3GPP TS 36.101 for a definition of most of the parameters described here.

Parameters:
earfcnthe carrier frequency (EARFCN) of the transmission
bandwidththe Transmission Bandwidth Configuration in number of resource blocks
txPowerthe total power in dBm over the whole bandwidth
ActiveRbsthe list of Active Resource Blocks (PRBs)
Returns:
a pointer to a newly allocated SpectrumValue representing the TX Power Spectral Density in W/Hz for each Resource Block

References GetSpectrumModel(), NS_LOG_FUNCTION, and NS_LOG_LOGIC.

Referenced by ns3::LteUePhy::CreateTxPowerSpectralDensity().

double ns3::LteSpectrumValueHelper::GetCarrierFrequency ( uint16_t  earfcn)
static

Calculates the carrier frequency from the E-UTRA Absolute Radio Frequency Channel Number (EARFCN) according to 3GPP TS 36.101 section 5.7.3 "Carrier frequency and EARFCN".

Parameters:
earfcnthe EARFCN
Returns:
the carrier frequency in Hz

References GetDownlinkCarrierFrequency(), GetUplinkCarrierFrequency(), and NS_LOG_FUNCTION.

Referenced by GetSpectrumModel().

double ns3::LteSpectrumValueHelper::GetChannelBandwidth ( uint8_t  txBandwidthConf)
static
Parameters:
txBandwidthConfthe tranmission bandwidth configuration in number of resource blocks
Returns:
the nominal channel bandwidth in Hz as per 3GPP TS 36.101

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

double ns3::LteSpectrumValueHelper::GetDownlinkCarrierFrequency ( uint16_t  earfcn)
static

Calculates the dowlink carrier frequency from the E-UTRA Absolute Radio Frequency Channel Number (EARFCN) using the formula in 3GPP TS 36.101 section 5.7.3 "Carrier frequency and EARFCN".

Parameters:
earfcnthe EARFCN
Returns:
the dowlink carrier frequency in Hz

References NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

Referenced by GetCarrierFrequency().

Ptr< SpectrumModel > ns3::LteSpectrumValueHelper::GetSpectrumModel ( uint16_t  earfcn,
uint8_t  bandwdith 
)
static
Parameters:
earfcnthe carrier frequency (EARFCN) at which reception is made
bandwidththe Transmission Bandwidth Configuration in number of resource blocks
Returns:
the static SpectrumModel instance corresponding to the given carrier frequency and transmission bandwidth configuration. If such SpectrumModel does not exist, it is created.

References ns3::BandInfo::fc, ns3::BandInfo::fh, ns3::BandInfo::fl, GetCarrierFrequency(), ns3::SpectrumModel::GetUid(), NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

Referenced by CreateNoisePowerSpectralDensity(), and CreateTxPowerSpectralDensity().

double ns3::LteSpectrumValueHelper::GetUplinkCarrierFrequency ( uint16_t  earfcn)
static

Calculates the uplink carrier frequency from the E-UTRA Absolute Radio Frequency Channel Number (EARFCN) using the formula in 3GPP TS 36.101 section 5.7.3 "Carrier frequency and EARFCN".

Parameters:
earfcnthe EARFCN
Returns:
the uplink carrier frequency in Hz

References NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

Referenced by GetCarrierFrequency().


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