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

#include <lte-test-ue-phy.h>

+ Inheritance diagram for ns3::LteTestUePhy:
+ Collaboration diagram for ns3::LteTestUePhy:

Public Member Functions

 LteTestUePhy ()
 
 LteTestUePhy (Ptr< LteSpectrumPhy > dlPhy, Ptr< LteSpectrumPhy > ulPhy)
 
virtual ~LteTestUePhy ()
 
virtual Ptr< SpectrumValueCreateTxPowerSpectralDensity ()
 Create the PSD for the TX. More...
 
virtual void DoDispose ()
 This method is called by Object::Dispose or by the object's destructor, whichever comes first. More...
 
virtual void DoSendMacPdu (Ptr< Packet > p)
 Queue the MAC PDU to be sent. More...
 
virtual void GenerateCtrlCqiReport (const SpectrumValue &sinr)
 generate a CQI report based on the given SINR of Ctrl frame More...
 
virtual void GenerateDataCqiReport (const SpectrumValue &sinr)
 generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs) More...
 
SpectrumValue GetSinr ()
 
virtual void ReceiveLteControlMessage (Ptr< LteControlMessage > msg)
 
virtual void ReportInterference (const SpectrumValue &interf)
 generate a report based on the linear interference and noise power perceived during DATA frame NOTE: used only by eNB More...
 
virtual void ReportRsReceivedPower (const SpectrumValue &power)
 generate a report based on the linear RS power perceived during CTRL frame NOTE: used only by UE for evaluating RSRP More...
 
- Public Member Functions inherited from ns3::LtePhy
 LtePhy ()
 
 LtePhy (Ptr< LteSpectrumPhy > dlPhy, Ptr< LteSpectrumPhy > ulPhy)
 
virtual ~LtePhy ()
 
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)
 Set the downlink channel. More...
 
void SetMacPdu (Ptr< Packet > p)
 
void SetTti (double tti)
 
void SetUplinkChannel (Ptr< SpectrumChannel > c)
 Set the uplink channel. More...
 
- Public Member Functions inherited from ns3::Object
 Object ()
 
virtual ~Object ()
 
void AggregateObject (Ptr< Object > other)
 
void Dispose (void)
 Run the DoDispose methods of this object and all the objects aggregated to it. More...
 
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)
 This method calls the virtual DoInitialize method on all the objects aggregated to this object. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
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)
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 Noop. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

SpectrumValue m_sinr
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 
virtual void DoInitialize (void)
 This method is called only once by Object::Initialize. More...
 
virtual void NotifyNewAggregate (void)
 This method is invoked whenever two sets of objects are aggregated together. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 
- 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 32 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 38 of file lte-test-ue-phy.cc.

References NS_LOG_FUNCTION.

ns3::LteTestUePhy::~LteTestUePhy ( )
virtual

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

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 73 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 49 of file lte-test-ue-phy.cc.

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

+ Here is the call graph for this 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 67 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 82 of file lte-test-ue-phy.cc.

References m_sinr, and 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 91 of file lte-test-ue-phy.cc.

References m_sinr, and NS_LOG_FUNCTION.

SpectrumValue ns3::LteTestUePhy::GetSinr ( )

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

References m_sinr, and NS_LOG_FUNCTION.

TypeId ns3::LteTestUePhy::GetTypeId ( void  )
static

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

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

void ns3::LteTestUePhy::ReceiveLteControlMessage ( Ptr< LteControlMessage msg)
virtual

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

References NS_LOG_FUNCTION.

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

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

Parameters
interfthe interference + noise power measured by the device

Implements ns3::LtePhy.

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

References NS_LOG_FUNCTION.

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

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

Parameters
powerthe RS power measured by the device

Implements ns3::LtePhy.

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

References NS_LOG_FUNCTION.

Member Data Documentation

SpectrumValue ns3::LteTestUePhy::m_sinr
private

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

Referenced by GenerateCtrlCqiReport(), GenerateDataCqiReport(), and GetSinr().


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