|
ns-3
|
The LteAmc class implements the Adaptive Modulation And Coding Scheme as proposed in 3GPP TSG-RAN WG1 - R1-081483 http://www.3gpp.org/ftp/tsg_ran/WG1_RL1/TSGR1_52b/Docs/R1-081483.zip. More...
#include <lte-amc.h>


Public Types | |
| enum | AmcModel { PiroEW2010, MiErrorModel } |
Public Member Functions | |
| int | GetMcsFromCqi (int cqi) |
| Get the Modulation anc Coding Scheme for a CQI value. | |
| int | GetTbSizeFromMcs (int mcs, int nprb) |
| Get the Transport Block Size for a selected MCS and number of PRB (table 7.1.7.2.1-1 of 36.213) | |
| double | GetSpectralEfficiencyFromCqi (int cqi) |
| Get the spectral efficiency value associated to the received CQI. | |
| std::vector< int > | CreateCqiFeedbacks (const SpectrumValue &sinr, uint8_t rbgSize=0) |
| Create a message with CQI feedback. | |
| int | GetCqiFromSpectralEfficiency (double s) |
| Get a proper CQI for the spectrale efficiency value. In order to assure a fewer block error rate, the AMC chooses the lower CQI value for a given spectral efficiency. | |
Public Member Functions inherited from ns3::Object | |
| virtual TypeId | GetInstanceTypeId (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| void | Dispose (void) |
| void | AggregateObject (Ptr< Object > other) |
| AggregateIterator | GetAggregateIterator (void) const |
| void | Start (void) |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount (const SimpleRefCount &o) | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| void | Ref (void) const |
| void | Unref (void) const |
| uint32_t | GetReferenceCount (void) const |
Public Member Functions inherited from ns3::ObjectBase | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
| 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::LteAmc. | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
| virtual void | NotifyNewAggregate (void) |
| virtual void | DoStart (void) |
| virtual void | DoDispose (void) |
| Object (const Object &o) | |
The LteAmc class implements the Adaptive Modulation And Coding Scheme as proposed in 3GPP TSG-RAN WG1 - R1-081483 http://www.3gpp.org/ftp/tsg_ran/WG1_RL1/TSGR1_52b/Docs/R1-081483.zip.
| std::vector< int > ns3::LteAmc::CreateCqiFeedbacks | ( | const SpectrumValue & | sinr, |
| uint8_t | rbgSize = 0 |
||
| ) |
Create a message with CQI feedback.
| sinr | the SpectrumValue vector of SINR for evaluating the CQI |
| rbgSize | size of RB group (in RBs) for evaluating subband/wideband CQI |
References ns3::SpectrumValue::ConstValuesBegin(), ns3::SpectrumValue::ConstValuesEnd(), GetCqiFromSpectralEfficiency(), ns3::LteMiErrorModel::GetTbError(), GetTbSizeFromMcs(), NS_ASSERT_MSG, NS_LOG_DEBUG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by ns3::LteUePhy::CreateDlCqiFeedbackMessage().
| int ns3::LteAmc::GetCqiFromSpectralEfficiency | ( | double | s | ) |
Get a proper CQI for the spectrale efficiency value. In order to assure a fewer block error rate, the AMC chooses the lower CQI value for a given spectral efficiency.
| s | the spectral efficiency |
References NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by CreateCqiFeedbacks().
| int ns3::LteAmc::GetMcsFromCqi | ( | int | cqi | ) |
Get the Modulation anc Coding Scheme for a CQI value.
| cqi | the cqi value |
References NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
| double ns3::LteAmc::GetSpectralEfficiencyFromCqi | ( | int | cqi | ) |
Get the spectral efficiency value associated to the received CQI.
| cqi | the cqi value |
References NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
| int ns3::LteAmc::GetTbSizeFromMcs | ( | int | mcs, |
| int | nprb | ||
| ) |
Get the Transport Block Size for a selected MCS and number of PRB (table 7.1.7.2.1-1 of 36.213)
| mcs | the mcs index |
| nprb | the no. of PRB |
References NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by CreateCqiFeedbacks().
|
static |
This method returns the TypeId associated to ns3::LteAmc.
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
References ns3::TypeId::SetParent().