ns-3
|
#include <enb-phy.h>
Public Member Functions | |
EnbLtePhy (Ptr< LteNetDevice > d) | |
Create the eNB phy layer. | |
virtual bool | SendPacket (Ptr< PacketBurst > pb) |
Send a burst of packet to the channel. | |
void | DoSetDownlinkSubChannels () |
do some operation after the set of a list of DL sub channels | |
virtual Ptr< SpectrumValue > | CreateTxPowerSpectralDensity () |
Create the PSD for TX. | |
void | CalcChannelQualityForUe (std::vector< double > sinr, Ptr< LteSpectrumPhy > ue) |
Calculate the channel quality for a given UE. | |
virtual void | SendIdealControlMessage (Ptr< IdealControlMessage > msg) |
Send the control message. | |
virtual void | ReceiveIdealControlMessage (Ptr< IdealControlMessage > msg) |
Receive the control message. | |
void | StartFrame (void) |
Start a LTE frame. | |
void | StartSubFrame (void) |
Start a LTE sub frame. | |
void | EndSubFrame (void) |
End a LTE sub frame. | |
void | EndFrame (void) |
End a LTE frame. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::EnbLtePhy. |
EnbLtePhy models the physical layer for the eNodeB
ns3::EnbLtePhy::EnbLtePhy | ( | Ptr< LteNetDevice > | d | ) |
Create the eNB phy layer.
d | the device where the phy 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::EnbLtePhy::CalcChannelQualityForUe | ( | std::vector< double > | sinr, |
Ptr< LteSpectrumPhy > | ue | ||
) |
Calculate the channel quality for a given UE.
sinr | a list of computed SINR |
ue | the UE |
References NS_LOG_FUNCTION.
TypeId ns3::EnbLtePhy::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::EnbLtePhy.
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::EnbLtePhy::ReceiveIdealControlMessage | ( | Ptr< IdealControlMessage > | msg | ) | [virtual] |
Receive the control message.
msg | the received message |
Implements ns3::LtePhy.
References ns3::LtePhy::GetDevice(), ns3::Object::GetObject(), and NS_LOG_FUNCTION.
void ns3::EnbLtePhy::SendIdealControlMessage | ( | Ptr< IdealControlMessage > | msg | ) | [virtual] |
Send the control message.
msg | the message to send |
Implements ns3::LtePhy.
References NS_LOG_FUNCTION.
bool ns3::EnbLtePhy::SendPacket | ( | Ptr< PacketBurst > | pb | ) | [virtual] |
Send a burst of packet to the channel.
pb | a burst of packet to the channel |
Implements ns3::LtePhy.
References ns3::LtePhy::GetDownlinkSpectrumPhy(), ns3::PacketBurst::GetNPackets(), ns3::PacketBurst::GetSize(), NS_LOG_FUNCTION, and ns3::LteSpectrumPhy::StartTx().