24 #include <ns3/boolean.h>
25 #include <ns3/double.h>
26 #include <ns3/integer.h>
75 .AddConstructor<LteUePowerControl> ()
76 .AddAttribute (
"ClosedLoop",
77 "If true Closed Loop mode will be active, otherwise Open Loop",
80 MakeBooleanChecker ())
81 .AddAttribute (
"AccumulationEnabled",
82 "If true TCP accumulation mode will be active, otherwise absolute mode will be active",
85 MakeBooleanChecker ())
86 .AddAttribute (
"Alpha",
87 "Value of Alpha paramter",
90 MakeDoubleChecker<double> ())
91 .AddAttribute (
"Pcmax",
92 "Max Transmission power in dBm, Default value 23 dBm"
93 "TS36.101 section 6.2.3",
96 MakeDoubleChecker<double> ())
97 .AddAttribute (
"Pcmin",
98 "Min Transmission power in dBm, Default value -40 dBm"
99 "TS36.101 section 6.2.3",
102 MakeDoubleChecker<double> ())
103 .AddAttribute (
"PoNominalPusch",
104 "P_O_NOMINAL_PUSCH INT (-126 ... 24), Default value -80",
107 MakeIntegerChecker<int16_t> ())
108 .AddAttribute (
"PoUePusch",
109 "P_O_UE_PUSCH INT(-8...7), Default value 0",
112 MakeIntegerChecker<int16_t> ())
113 .AddAttribute (
"PsrsOffset",
114 "P_SRS_OFFSET INT(0...15), Default value 7",
117 MakeIntegerChecker<int16_t> ())
118 .AddTraceSource (
"ReportPuschTxPower",
119 "Report PUSCH TxPower in dBm",
121 .AddTraceSource (
"ReportPucchTxPower",
122 "Report PUCCH TxPower in dBm",
124 .AddTraceSource (
"ReportSrsTxPower",
125 "Report SRS TxPower in dBm",
216 uint32_t temp = value * 10;
347 NS_LOG_INFO (
"ReportTpc: " << (
int)tpc <<
" delta: " << delta <<
" Fc: " <<
m_fc);
void SetTxPower(double value)
void SetSubChannelMask(std::vector< int > mask)
std::vector< int16_t > m_PoNominalPusch
virtual ~LteUePowerControl()
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void SetCellId(uint16_t cellId)
void SetAlpha(double value)
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
void CalculateSrsTxPower()
double m_referenceSignalPower
double GetPuschTxPower(std::vector< int > rb)
void SetPoUePusch(int16_t value)
Hold a signed integer type.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
std::vector< int8_t > m_deltaPusch
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_FATAL_ERROR(msg)
fatal error handling
TracedCallback< uint16_t, uint16_t, double > m_reportPucchTxPower
void SetPcmax(double value)
TracedCallback< uint16_t, uint16_t, double > m_reportSrsTxPower
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
TracedCallback< uint16_t, uint16_t, double > m_reportPuschTxPower
Trace information regarding Uplink TxPower uint16_t cellId, uint16_t rnti, double txPower...
static TypeId GetTypeId(void)
std::vector< int16_t > m_PoUePusch
void CalculatePucchTxPower()
void SetPoNominalPusch(int16_t value)
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
std::vector< double > m_alpha
void CalculatePuschTxPower()
void SetRnti(uint16_t rnti)
double GetPucchTxPower(std::vector< int > rb)
double GetSrsTxPower(std::vector< int > rb)
void SetRsrp(double value)
a base class which provides memory management and object aggregation
void ConfigureReferenceSignalPower(int8_t referenceSignalPower)
Hold a floating point type.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
bool m_accumulationEnabled
void ReportTpc(uint8_t tpc)
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...