#include <lte-test-ue-phy.h>
Public Member Functions | |
LteTestUePhy () | |
LteTestUePhy (Ptr< LteSpectrumPhy > dlPhy, Ptr< LteSpectrumPhy > ulPhy) | |
virtual | ~LteTestUePhy () |
virtual Ptr< SpectrumValue > | CreateTxPowerSpectralDensity () |
Create the PSD for the TX. | |
virtual void | DoDispose () |
virtual void | DoSendMacPdu (Ptr< Packet > p) |
Queue the MAC PDU to be sent. | |
virtual void | GenerateCqiReport (const SpectrumValue &sinr) |
SpectrumValue | GetSinr () |
virtual void | ReceiveIdealControlMessage (Ptr< IdealControlMessage > msg) |
Receive SendIdealControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel. | |
![]() | |
LtePhy () | |
LtePhy (Ptr< LteSpectrumPhy > dlPhy, Ptr< LteSpectrumPhy > ulPhy) | |
virtual | ~LtePhy () |
void | DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) |
void | DoSetCellId (uint16_t cellId) |
virtual void | DoSetDownlinkSubChannels () |
do some operation after the set of a list of DL sub channels | |
virtual void | DoSetEarfcn (uint16_t dlEarfcn, uint16_t ulEarfcn) |
virtual void | DoSetUplinkSubChannels () |
do some operation after the set of a list of UL sub channels | |
std::list< Ptr < IdealControlMessage > > | GetControlMessages (void) |
Ptr< LteNetDevice > | GetDevice () |
Get the device where the phy layer is attached. | |
Ptr< LteSpectrumPhy > | GetDownlinkSpectrumPhy () |
std::vector< int > | GetDownlinkSubChannels (void) |
get a list of sub channel to use in the downlink | |
Ptr< PacketBurst > | GetPacketBurst (void) |
uint8_t | GetRbgSize (void) const |
double | GetTti (void) const |
Ptr< LteSpectrumPhy > | GetUplinkSpectrumPhy () |
std::vector< int > | GetUplinkSubChannels (void) |
get a list of sub channel to use in the downlink | |
void | SetControlMessages (Ptr< IdealControlMessage > m) |
void | SetDevice (Ptr< LteNetDevice > d) |
Set the device where the phy layer is attached. | |
void | SetDownlinkChannel (Ptr< SpectrumChannel > c) |
void | SetDownlinkSubChannels (std::vector< int > mask) |
set a list of sub channel to use in the downlink. A sub channel is composed by a couple of resource bloks (180KHz x 1 ms) | |
void | SetMacPdu (Ptr< Packet > p) |
void | SetTti (double tti) |
void | SetUplinkChannel (Ptr< SpectrumChannel > c) |
void | SetUplinkSubChannels (std::vector< int > mask) |
set a list of sub channel to use in the uplink. A sub channel is composed by a couple of resource bloks (180KHz x 1 ms) | |
![]() | |
Object () | |
virtual | ~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 | Start (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~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) |
This method returns the TypeId associated to ns3::LtePhy. |
Private Attributes | |
SpectrumValue | m_sinr |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
![]() | |
uint16_t | m_cellId |
std::vector< std::list< Ptr < IdealControlMessage > > > | m_controlMessagesQueue |
uint8_t | m_dlBandwidth |
uint16_t | m_dlEarfcn |
Ptr< LteSpectrumPhy > | m_downlinkSpectrumPhy |
std::vector< int > | m_listOfDownlinkSubchannel |
std::vector< int > | m_listOfUplinkSubchannel |
uint8_t | m_macChTtiDelay |
Ptr< LteNetDevice > | m_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< LteSpectrumPhy > | m_uplinkSpectrumPhy |
Definition at line 30 of file lte-test-ue-phy.h.
ns3::LteTestUePhy::LteTestUePhy | ( | ) |
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 | ||
) |
dlPhy | the downlink LteSpectrumPhy instance |
ulPhy | the uplink LteSpectrumPhy instance |
Definition at line 37 of file lte-test-ue-phy.cc.
References NS_LOG_FUNCTION.
|
virtual |
Definition at line 43 of file lte-test-ue-phy.cc.
|
virtual |
Create the PSD for the TX.
Implements ns3::LtePhy.
Definition at line 72 of file lte-test-ue-phy.cc.
References NS_LOG_FUNCTION.
|
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 NS_LOG_FUNCTION.
Queue the MAC PDU to be sent.
p | the MAC PDU to sent |
Implements ns3::LtePhy.
Definition at line 66 of file lte-test-ue-phy.cc.
References NS_LOG_FUNCTION.
|
virtual |
generate a CQI report based on the given SINR
sinr | the SINR vs frequency measured by the device |
Implements ns3::LtePhy.
Definition at line 81 of file lte-test-ue-phy.cc.
References m_sinr, and NS_LOG_FUNCTION.
SpectrumValue ns3::LteTestUePhy::GetSinr | ( | ) |
Definition at line 96 of file lte-test-ue-phy.cc.
References m_sinr, and NS_LOG_FUNCTION.
|
static |
This method returns the TypeId associated to ns3::LtePhy.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::LtePhy.
Definition at line 56 of file lte-test-ue-phy.cc.
References ns3::TypeId::SetParent().
|
virtual |
Receive SendIdealControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel.
msg | the Ideal Control Message to receive |
Implements ns3::LtePhy.
Definition at line 90 of file lte-test-ue-phy.cc.
References NS_LOG_FUNCTION.
|
private |
Definition at line 68 of file lte-test-ue-phy.h.
Referenced by GenerateCqiReport(), and GetSinr().