27 #include <ns3/generic-phy.h>
28 #include <ns3/mobility-model.h>
29 #include <ns3/nstime.h>
30 #include <ns3/packet.h>
31 #include <ns3/spectrum-channel.h>
32 #include <ns3/spectrum-interference.h>
33 #include <ns3/spectrum-phy.h>
34 #include <ns3/spectrum-signal-parameters.h>
35 #include <ns3/spectrum-value.h>
42 class LteControlMessage;
The LtePhy models the physical layer of LTE.
virtual void ReportInterference(const SpectrumValue &interf)=0
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
void DoSetCellId(uint16_t cellId)
double m_txPower
Transmission power in dBm.
static TypeId GetTypeId()
Get the type ID.
uint8_t GetRbgSize() const
uint8_t GetComponentCarrierId() const
Get the component carrier ID.
void DoDispose() override
Destructor implementation.
uint16_t GetSrsPeriodicity(uint16_t srcCi) const
std::vector< Ptr< PacketBurst > > m_packetBurstQueue
A queue of packet bursts to be sent.
uint16_t m_ulBandwidth
The UL bandwidth in number of PRBs.
Ptr< PacketBurst > GetPacketBurst()
Ptr< LteNetDevice > GetDevice() const
Get the device where the phy layer is attached.
void SetDownlinkChannel(Ptr< SpectrumChannel > c)
Set the downlink channel.
void SetUplinkChannel(Ptr< SpectrumChannel > c)
Set the uplink channel.
virtual void ReportRsReceivedPower(const SpectrumValue &power)=0
generate a report based on the linear RS power perceived during CTRL frame NOTE: used only by UE for ...
uint8_t m_componentCarrierId
component carrier Id used to address sap
double m_noiseFigure
Loss (dB) in the Signal-to-Noise-Ratio due to non-idealities in the receiver.
void SetComponentCarrierId(uint8_t index)
Set the component carrier ID.
Ptr< LteSpectrumPhy > GetDownlinkSpectrumPhy()
uint32_t m_ulEarfcn
The uplink carrier frequency.
uint16_t m_dlBandwidth
The DL bandwidth in number of PRBs.
Ptr< LteSpectrumPhy > m_downlinkSpectrumPhy
The downlink LteSpectrumPhy associated to this LtePhy.
Ptr< LteSpectrumPhy > GetUplinkSpectrumPhy()
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity()=0
Compute the TX Power Spectral Density.
void SetMacPdu(Ptr< Packet > p)
std::list< Ptr< LteControlMessage > > GetControlMessages()
uint16_t GetSrsSubframeOffset(uint16_t srcCi) const
void SetDevice(Ptr< LteNetDevice > d)
Set the device where the phy layer is attached.
virtual void GenerateDataCqiReport(const SpectrumValue &sinr)=0
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs)
Ptr< LteNetDevice > m_netDevice
Pointer to the NetDevice where this PHY layer is attached.
uint16_t m_cellId
Cell identifier.
void SetControlMessages(Ptr< LteControlMessage > m)
double m_tti
Transmission time interval.
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)=0
generate a CQI report based on the given SINR of Ctrl frame
uint32_t m_dlEarfcn
The downlink carrier frequency.
virtual void DoSendMacPdu(Ptr< Packet > p)=0
Queue the MAC PDU to be sent (according to m_macChTtiDelay)
Ptr< LteSpectrumPhy > m_uplinkSpectrumPhy
The uplink LteSpectrumPhy associated to this LtePhy.
std::vector< std::list< Ptr< LteControlMessage > > > m_controlMessagesQueue
A queue of control messages to be sent.
uint8_t m_rbgSize
The RB group size according to the bandwidth.
uint8_t m_macChTtiDelay
Delay between MAC and channel layer in terms of TTIs.
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
Set of values corresponding to a given SpectrumModel.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.