A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::LteTestUePhy Class Reference
+ Inheritance diagram for ns3::LteTestUePhy:

Public Member Functions

 LteTestUePhy ()
 
 LteTestUePhy (Ptr< LteSpectrumPhy > dlPhy, Ptr< LteSpectrumPhy > ulPhy)
 
virtual Ptr< SpectrumValueCreateTxPowerSpectralDensity ()
 Create the PSD for the TX. More...
 
virtual void DoDispose ()
 
virtual void DoSendMacPdu (Ptr< Packet > p)
 Queue the MAC PDU to be sent. More...
 
virtual void GenerateCtrlCqiReport (const SpectrumValue &sinr)
 
virtual void GenerateDataCqiReport (const SpectrumValue &sinr)
 
SpectrumValue GetSinr ()
 
virtual void ReceiveLteControlMessage (Ptr< LteControlMessage > msg)
 
virtual void ReportInterference (const SpectrumValue &interf)
 
virtual void ReportRsReceivedPower (const SpectrumValue &power)
 
- Public Member Functions inherited from ns3::LtePhy
 LtePhy ()
 
 LtePhy (Ptr< LteSpectrumPhy > dlPhy, Ptr< LteSpectrumPhy > ulPhy)
 
void DoSetCellId (uint16_t cellId)
 
std::list< Ptr
< LteControlMessage > > 
GetControlMessages (void)
 
Ptr< LteNetDeviceGetDevice ()
 Get the device where the phy layer is attached. More...
 
Ptr< LteSpectrumPhyGetDownlinkSpectrumPhy ()
 
Ptr< PacketBurstGetPacketBurst (void)
 
uint8_t GetRbgSize (void) const
 
uint16_t GetSrsPeriodicity (uint16_t srcCi) const
 
uint16_t GetSrsSubframeOffset (uint16_t srcCi) const
 
double GetTti (void) const
 
Ptr< LteSpectrumPhyGetUplinkSpectrumPhy ()
 
void SetControlMessages (Ptr< LteControlMessage > m)
 
void SetDevice (Ptr< LteNetDevice > d)
 Set the device where the phy layer is attached. More...
 
void SetDownlinkChannel (Ptr< SpectrumChannel > c)
 
void SetMacPdu (Ptr< Packet > p)
 
void SetTti (double tti)
 Receive SendLteControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel. More...
 
void SetUplinkChannel (Ptr< SpectrumChannel > c)
 
- Public Member Functions inherited from ns3::Object
void AggregateObject (Ptr< Object > other)
 
void Dispose (void)
 
AggregateIterator GetAggregateIterator (void) const
 
virtual TypeId GetInstanceTypeId (void) const
 
template<typename T >
Ptr< T > GetObject (void) const
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 
void Initialize (void)
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount (const SimpleRefCount &o)
 
uint32_t GetReferenceCount (void) const
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 
void Ref (void) const
 
void Unref (void) const
 
- Public Member Functions inherited from ns3::ObjectBase
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::LtePhy
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 

Private Attributes

SpectrumValue m_sinr
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 
virtual void DoInitialize (void)
 
virtual void NotifyNewAggregate (void)
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 
- Protected Attributes inherited from ns3::LtePhy
uint16_t m_cellId
 
std::vector< std::list< Ptr
< LteControlMessage > > > 
m_controlMessagesQueue
 
uint8_t m_dlBandwidth
 
uint16_t m_dlEarfcn
 
Ptr< LteSpectrumPhym_downlinkSpectrumPhy
 
uint8_t m_macChTtiDelay
 
Ptr< LteNetDevicem_netDevice
 
double m_noiseFigure
 
std::vector< Ptr< PacketBurst > > m_packetBurstQueue
 
uint8_t m_rbgSize
 
double m_tti
 
double m_txPower
 
uint8_t m_ulBandwidth
 
uint16_t m_ulEarfcn
 
Ptr< LteSpectrumPhym_uplinkSpectrumPhy
 

Detailed Description

Definition at line 30 of file lte-test-ue-phy.h.

Constructor & Destructor Documentation

ns3::LteTestUePhy::LteTestUePhy ( )
Warning
the default constructor should not be used

Definition at line 31 of file lte-test-ue-phy.cc.

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

ns3::LteTestUePhy::LteTestUePhy ( Ptr< LteSpectrumPhy dlPhy,
Ptr< LteSpectrumPhy ulPhy 
)
Parameters
dlPhythe downlink LteSpectrumPhy instance
ulPhythe uplink LteSpectrumPhy instance

Definition at line 37 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

Ptr< SpectrumValue > ns3::LteTestUePhy::CreateTxPowerSpectralDensity ( )
virtual

Create the PSD for the TX.

Returns
the pointer to the PSD

Implements ns3::LtePhy.

Definition at line 72 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

void ns3::LteTestUePhy::DoDispose ( void  )
virtual

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

It is safe to call GetObject from within this method.

Reimplemented from ns3::LtePhy.

Definition at line 48 of file lte-test-ue-phy.cc.

References ns3::LtePhy::DoDispose(), and NS_LOG_FUNCTION.

void ns3::LteTestUePhy::DoSendMacPdu ( Ptr< Packet p)
virtual

Queue the MAC PDU to be sent.

Parameters
pthe MAC PDU to sent

Implements ns3::LtePhy.

Definition at line 66 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

void ns3::LteTestUePhy::GenerateCtrlCqiReport ( const SpectrumValue sinr)
virtual

generate a CQI report based on the given SINR of Ctrl frame

Parameters
sinrthe SINR vs frequency measured by the device

Implements ns3::LtePhy.

Definition at line 81 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

void ns3::LteTestUePhy::GenerateDataCqiReport ( const SpectrumValue sinr)
virtual

generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs)

Parameters
sinrthe SINR vs frequency measured by the device

Implements ns3::LtePhy.

Definition at line 90 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

void ns3::LteTestUePhy::ReportInterference ( const SpectrumValue power)
virtual

generate a report based on the linear interference and noise power perceived during DATA frame NOTE: used only by eNB

Parameters
sinrthe interference + noise power measured by the device

Implements ns3::LtePhy.

Definition at line 106 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

void ns3::LteTestUePhy::ReportRsReceivedPower ( const SpectrumValue interf)
virtual

generate a report based on the linear RS power perceived during CTRL frame NOTE: used only by UE for evaluating RSRP

Parameters
sinrthe RS power measured by the device

Implements ns3::LtePhy.

Definition at line 99 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.


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