22 #include "lte-common.h"
24 #include <ns3/abort.h>
31 LteFlowId_t::LteFlowId_t ()
35 LteFlowId_t::LteFlowId_t (
const uint16_t a,
const uint8_t b)
42 operator == (
const LteFlowId_t &a,
const LteFlowId_t &b)
44 return ( (a.m_rnti == b.m_rnti) && (a.m_lcId == b.m_lcId) );
48 operator < (
const LteFlowId_t& a,
const LteFlowId_t& b)
50 return ( (a.m_rnti < b.m_rnti) || ( (a.m_rnti == b.m_rnti) && (a.m_lcId < b.m_lcId) ) );
53 ImsiLcidPair_t::ImsiLcidPair_t ()
57 ImsiLcidPair_t::ImsiLcidPair_t (
const uint64_t a,
const uint8_t b)
64 operator == (
const ImsiLcidPair_t &a,
const ImsiLcidPair_t &b)
66 return ((a.m_imsi == b.m_imsi) && (a.m_lcId == b.m_lcId));
70 operator < (
const ImsiLcidPair_t& a,
const ImsiLcidPair_t& b)
72 return ((a.m_imsi < b.m_imsi) || ((a.m_imsi == b.m_imsi) && (a.m_lcId
77 LteUeConfig_t::LteUeConfig_t ()
84 operator == (
const LteUeConfig_t &a,
const LteUeConfig_t &b)
86 return (a.m_rnti == b.m_rnti);
90 operator < (
const LteUeConfig_t& a,
const LteUeConfig_t& b)
92 return (a.m_rnti < b.m_rnti);
97 LteFfConverter::double2fpS11dot3 (
double val)
109 int16_t valFp = (int16_t)(val * 8);
114 LteFfConverter::fpS11dot3toDouble (uint16_t val)
117 double valD = ((int16_t)val) / 8.0;
122 LteFfConverter::getMinFpS11dot3Value ()
130 uint32_t BufferSizeLevelBsrTable[64] = {
132 0, 10, 12, 14, 17, 19, 22, 26, 31, 36, 42, 49, 57, 67, 78, 91,
133 107, 125, 146, 171, 200, 234, 274, 321, 376, 440, 515, 603,
134 706, 826, 967, 1132, 1326, 1552, 1817, 2127, 2490, 2915, 3413,
135 3995, 4677, 5476, 6411, 7505, 8787, 10287, 12043, 14099, 16507,
136 19325, 22624, 26487, 31009, 36304, 42502, 49759, 58255,
137 68201, 79846, 93749, 109439, 128125, 150000, 150000
142 BufferSizeLevelBsr::BsrId2BufferSize (uint8_t val)
145 return BufferSizeLevelBsrTable[val];
149 BufferSizeLevelBsr::BufferSize2BsrId (uint32_t val)
152 if (BufferSizeLevelBsrTable[63] < val)
158 while (BufferSizeLevelBsrTable[index] < val)
170 TransmissionModesLayers::TxMode2LayerNum (uint8_t txMode)
#define NS_ASSERT(condition)
#define NS_LOG_COMPONENT_DEFINE(name)
#define NS_ABORT_MSG_UNLESS(cond, msg)
Abnormal program termination if cond is false.