ns-3
|
#include <lte-spectrum-phy.h>
The LteSpectrumPhy models the physical layer of LTE
PHY states
virtual void ns3::LteSpectrumPhy::CalcSinrValues | ( | Ptr< const SpectrumValue > | rxPsd, |
Ptr< const SpectrumValue > | noise | ||
) | [pure virtual] |
Calculate the SINR estimated during the reception of the packet.
rxPsd | the Power Spectral Density of the incoming waveform. |
noise | the Power Spectral Density of the noise. |
Implemented in ns3::EnbLteSpectrumPhy, and ns3::UeLteSpectrumPhy.
Ptr< SpectrumChannel > ns3::LteSpectrumPhy::GetChannel | ( | void | ) |
Get the channel where the physical layer is attached.
Referenced by ns3::LteNetDevice::GetChannel(), ns3::LtePhy::GetDownlinkChannel(), and ns3::LtePhy::GetUplinkChannel().
Ptr< NetDevice > ns3::LteSpectrumPhy::GetDevice | ( | ) | [virtual] |
get the associated NetDevice instance
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
Referenced by ns3::UeLteSpectrumPhy::CalcSinrValues().
Ptr< MobilityModel > ns3::LteSpectrumPhy::GetMobility | ( | ) | [virtual] |
get the associated MobilityModel instance
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
Referenced by ns3::JakesFadingLossModel::SetValue().
Ptr< const SpectrumValue > ns3::LteSpectrumPhy::GetNoisePowerSpectralDensity | ( | void | ) |
get the noise power spectral density
References NS_LOG_FUNCTION.
Ptr< const SpectrumModel > ns3::LteSpectrumPhy::GetRxSpectrumModel | ( | ) | const [virtual] |
Implements ns3::SpectrumPhy.
References ns3::SpectrumValue::GetSpectrumModel().
TypeId ns3::LteSpectrumPhy::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::LteSpectrumPhy.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
TraceSources defined for this type:
Reimplemented from ns3::SpectrumPhy.
Reimplemented in ns3::EnbLteSpectrumPhy, and ns3::UeLteSpectrumPhy.
References ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().
void ns3::LteSpectrumPhy::SetChannel | ( | Ptr< SpectrumChannel > | c | ) | [virtual] |
Set the channel attached to this device.
c | the channel |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
Referenced by ns3::LtePhy::SetDownlinkChannel(), and ns3::LtePhy::SetUplinkChannel().
void ns3::LteSpectrumPhy::SetDevice | ( | Ptr< NetDevice > | d | ) | [virtual] |
set the associated NetDevice instance
d | the NetDevice instance |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
Referenced by ns3::LteHelper::Install().
set the callback for the end of a RX in error, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
References NS_LOG_FUNCTION.
set the callback for the successful end of a RX, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
References NS_LOG_FUNCTION.
set the callback for the start of RX, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
References NS_LOG_FUNCTION.
set the callback for the end of a TX, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
References NS_LOG_FUNCTION.
void ns3::LteSpectrumPhy::SetMobility | ( | Ptr< MobilityModel > | m | ) | [virtual] |
Set the mobility model associated with this device.
m | the mobility model |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
Referenced by ns3::LteHelper::AddMobility().
void ns3::LteSpectrumPhy::SetNoisePowerSpectralDensity | ( | Ptr< const SpectrumValue > | noisePsd | ) |
set the noise power spectral density
noisePsd | the Noise Power Spectral Density in power units (Watt, Pascal...) per Hz. |
References NS_ASSERT, NS_LOG_FUNCTION, and NS_LOG_INFO.
void ns3::LteSpectrumPhy::SetState | ( | State | newState | ) |
Set the state of the phy layer.
newState | the state |
void ns3::LteSpectrumPhy::SetTxPowerSpectralDensity | ( | Ptr< SpectrumValue > | txPsd | ) |
set the Power Spectral Density of outgoing signals in W/Hz.
txPsd |
References NS_ASSERT, NS_LOG_FUNCTION, and NS_LOG_INFO.
Referenced by ns3::EnbLtePhy::DoSetDownlinkSubChannels(), and ns3::UeLtePhy::SetSubChannelsForTransmission().
void ns3::LteSpectrumPhy::StartRx | ( | Ptr< SpectrumSignalParameters > | params | ) | [virtual] |
Notify the SpectrumPhy instance of an incoming signal
params | the parameters of the signals being received |
Implements ns3::SpectrumPhy.
References ns3::Packet::Copy(), NS_FATAL_ERROR, NS_LOG_FUNCTION, NS_LOG_LOGIC, and ns3::Simulator::Schedule().
bool ns3::LteSpectrumPhy::StartTx | ( | Ptr< PacketBurst > | pb | ) |
Start a transmission
pb | the burst of packets to be transmitted |
References ns3::Packet::Copy(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Simulator::Schedule(), ns3::Seconds(), and ns3::SpectrumChannel::StartTx().
Referenced by ns3::EnbLtePhy::SendPacket(), ns3::UeLtePhy::SendPacket(), ns3::UeNetDevice::SendPacket(), and ns3::EnbNetDevice::SendPacket().