ns-3
|
#include <ue-phy.h>
Public Member Functions | |
UeLtePhy (Ptr< LteNetDevice > d) | |
Create the physical layer. | |
virtual bool | SendPacket (Ptr< PacketBurst > pb) |
Send the packet to the channel. | |
virtual Ptr< SpectrumValue > | CreateTxPowerSpectralDensity () |
Create the PSD for the TX. | |
virtual void | DoSetUplinkSubChannels () |
Update available channel for TX. | |
void | SetSubChannelsForTransmission (std::vector< int > mask) |
Set a list of sub channels to use in TX. | |
std::vector< int > | GetSubChannelsForTransmission (void) |
Get a list of sub channels to use in RX. | |
void | SetSubChannelsForReception (std::vector< int > mask) |
Get a list of sub channels to use in RX. | |
std::vector< int > | GetSubChannelsForReception (void) |
Get a list of sub channels to use in RX. | |
void | CreateCqiFeedbacks (std::vector< double > sinr) |
Create CQI feedbacks from SINR values. SINR values are computed at the physical layer when is received a signal from the eNB. | |
virtual void | SendIdealControlMessage (Ptr< IdealControlMessage > msg) |
Send SendIdealControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel. | |
virtual void | ReceiveIdealControlMessage (Ptr< IdealControlMessage > msg) |
Receive SendIdealControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::UeLtePhy. |
The LteSpectrumPhy models the physical layer of LTE
ns3::UeLtePhy::UeLtePhy | ( | Ptr< LteNetDevice > | d | ) |
Create the physical layer.
d | the device where the physical layer is attached |
References ns3::LtePhy::SetDevice(), ns3::LtePhy::SetDownlinkSpectrumPhy(), ns3::LtePhy::SetNrFrames(), ns3::LtePhy::SetNrSubFrames(), ns3::LtePhy::SetTti(), ns3::LtePhy::SetTxPower(), and ns3::LtePhy::SetUplinkSpectrumPhy().
void ns3::UeLtePhy::CreateCqiFeedbacks | ( | std::vector< double > | sinr | ) |
Create CQI feedbacks from SINR values. SINR values are computed at the physical layer when is received a signal from the eNB.
sinr | list of SINR values |
References ns3::LtePhy::GetDevice(), ns3::Object::GetObject(), NS_LOG_FUNCTION, and SendIdealControlMessage().
Ptr< SpectrumValue > ns3::UeLtePhy::CreateTxPowerSpectralDensity | ( | ) | [virtual] |
Create the PSD for the TX.
Implements ns3::LtePhy.
References ns3::LteSpectrumValueHelper::CreateUplinkTxPowerSpectralDensity(), GetSubChannelsForTransmission(), ns3::LtePhy::GetTxPower(), and NS_LOG_FUNCTION.
Referenced by SetSubChannelsForTransmission().
std::vector< int > ns3::UeLtePhy::GetSubChannelsForReception | ( | void | ) |
std::vector< int > ns3::UeLtePhy::GetSubChannelsForTransmission | ( | void | ) |
Get a list of sub channels to use in RX.
References NS_LOG_FUNCTION.
Referenced by CreateTxPowerSpectralDensity().
TypeId ns3::UeLtePhy::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::UeLtePhy.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::LtePhy.
References ns3::TypeId::SetParent().
void ns3::UeLtePhy::ReceiveIdealControlMessage | ( | Ptr< IdealControlMessage > | msg | ) | [virtual] |
Receive SendIdealControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel.
msg | the Ideal Control Message to receive |
Implements ns3::LtePhy.
References ns3::LtePhy::GetDevice(), NS_LOG_FUNCTION, and SetSubChannelsForReception().
void ns3::UeLtePhy::SendIdealControlMessage | ( | Ptr< IdealControlMessage > | msg | ) | [virtual] |
Send SendIdealControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel.
msg | the Ideal Control Message to send |
Implements ns3::LtePhy.
References NS_LOG_FUNCTION, and ns3::LtePhy::ReceiveIdealControlMessage().
Referenced by CreateCqiFeedbacks().
bool ns3::UeLtePhy::SendPacket | ( | Ptr< PacketBurst > | pb | ) | [virtual] |
Send the packet to the channel.
pb | the burst of packet to send |
Implements ns3::LtePhy.
References ns3::LtePhy::GetUplinkSpectrumPhy(), NS_LOG_FUNCTION, and ns3::LteSpectrumPhy::StartTx().
void ns3::UeLtePhy::SetSubChannelsForReception | ( | std::vector< int > | mask | ) |
Get a list of sub channels to use in RX.
mask | list of sub channels |
References NS_LOG_FUNCTION.
Referenced by ReceiveIdealControlMessage().
void ns3::UeLtePhy::SetSubChannelsForTransmission | ( | std::vector< int > | mask | ) |
Set a list of sub channels to use in TX.
mask | a list of sub channels |
References CreateTxPowerSpectralDensity(), ns3::LtePhy::GetUplinkSpectrumPhy(), NS_LOG_FUNCTION, and ns3::LteSpectrumPhy::SetTxPowerSpectralDensity().
Referenced by DoSetUplinkSubChannels().