24 #include <ns3/boolean.h> 25 #include <ns3/double.h> 26 #include <ns3/integer.h> 77 .AddAttribute (
"ClosedLoop",
78 "If true Closed Loop mode will be active, otherwise Open Loop",
82 .AddAttribute (
"AccumulationEnabled",
83 "If true TCP accumulation mode will be active, otherwise absolute mode will be active",
87 .AddAttribute (
"Alpha",
88 "Value of Alpha parameter",
91 MakeDoubleChecker<double> ())
92 .AddAttribute (
"Pcmax",
93 "Max Transmission power in dBm, Default value 23 dBm" 94 "TS36.101 section 6.2.3",
97 MakeDoubleChecker<double> ())
98 .AddAttribute (
"Pcmin",
99 "Min Transmission power in dBm, Default value -40 dBm" 100 "TS36.101 section 6.2.3",
103 MakeDoubleChecker<double> ())
104 .AddAttribute (
"PoNominalPusch",
105 "P_O_NOMINAL_PUSCH INT (-126 ... 24), Default value -80",
108 MakeIntegerChecker<int16_t> ())
109 .AddAttribute (
"PoUePusch",
110 "P_O_UE_PUSCH INT(-8...7), Default value 0",
113 MakeIntegerChecker<int16_t> ())
114 .AddAttribute (
"PsrsOffset",
115 "P_SRS_OFFSET INT(0...15), Default value 7",
118 MakeIntegerChecker<int16_t> ())
119 .AddTraceSource (
"ReportPuschTxPower",
120 "Report PUSCH TxPower in dBm",
122 "ns3::LteUePowerControl::TxPowerTracedCallback")
123 .AddTraceSource (
"ReportPucchTxPower",
124 "Report PUCCH TxPower in dBm",
126 "ns3::LteUePowerControl::TxPowerTracedCallback")
127 .AddTraceSource (
"ReportSrsTxPower",
128 "Report SRS TxPower in dBm",
130 "ns3::LteUePowerControl::TxPowerTracedCallback")
220 uint32_t temp = value * 10;
351 NS_LOG_INFO (
"ReportTpc: " << (
int)tpc <<
" delta: " << delta <<
" Fc: " <<
m_fc);
double m_pathLoss
path loss value
void SetTxPower(double value)
Set transmit power function.
void SetSubChannelMask(std::vector< int > mask)
Set subchannel mask function.
std::vector< int16_t > m_PoNominalPusch
PO nominal PUSCH.
virtual ~LteUePowerControl()
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
AttributeValue implementation for Boolean.
void SetCellId(uint16_t cellId)
Set the cell ID function.
void SetAlpha(double value)
Set alpha function.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
void CalculateSrsTxPower()
Calculate SRS transmit power function.
double m_referenceSignalPower
reference signal power
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
double GetPuschTxPower(std::vector< int > rb)
Get PUSCH transmit power function.
void SetPoUePusch(int16_t value)
Set PO UE PUSCH function.
uint16_t m_M_Pusch
size of DL RB list
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
delta PUSCH
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
bool m_closedLoop
is closed loop
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
uint16_t m_srsBandwidth
SRS bandwidth.
double m_curPucchTxPower
current PUCCH transmit power
TracedCallback< uint16_t, uint16_t, double > m_reportPucchTxPower
Trace information regarding Uplink TxPower uint16_t cellId, uint16_t rnti, double txPower...
void SetPcmax(double value)
Set PC maximum function.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
double m_Pcmax
PC maximum.
Ptr< const AttributeAccessor > MakeIntegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
TracedCallback< uint16_t, uint16_t, double > m_reportSrsTxPower
Trace information regarding Uplink TxPower uint16_t cellId, uint16_t rnti, double txPower...
virtual void DoInitialize(void)
Initialize() implementation.
TracedCallback< uint16_t, uint16_t, double > m_reportPuschTxPower
Trace information regarding Uplink TxPower uint16_t cellId, uint16_t rnti, double txPower...
double m_curPuschTxPower
current PUSCH transmit power
static TypeId GetTypeId(void)
Get the type ID.
std::vector< int16_t > m_PoUePusch
PO US PUSCH.
void CalculatePucchTxPower()
Calculate PUCCH transmit power function.
double m_Pcmin
PC minimum.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
int16_t m_PsrsOffset
PSRS offset.
void SetPoNominalPusch(int16_t value)
Set PO nominal PUSCH function.
Ptr< const AttributeChecker > MakeBooleanChecker(void)
std::vector< double > m_alpha
alpha values
void CalculatePuschTxPower()
Calculate PUSCH transmit power function.
double GetPcmax()
Get PC maximum function.
double m_curSrsTxPower
current SRS transmit power
This class realizes Uplink Power Control functionality.
void SetRnti(uint16_t rnti)
Set the RNTI function.
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
bool m_rsrpSet
is RSRP set?
double GetPucchTxPower(std::vector< int > rb)
Get PUCCH transmit power function.
double GetSrsTxPower(std::vector< int > rb)
Get SRS transmit power function.
double m_txPower
transmit power
void SetRsrp(double value)
Set RSRP function.
A base class which provides memory management and object aggregation.
void ConfigureReferenceSignalPower(int8_t referenceSignalPower)
Configure reference signal power function.
This class can be used to hold variables of floating point type such as 'double' or 'float'...
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
bool m_accumulationEnabled
accumulation enabled
void ReportTpc(uint8_t tpc)
Set RSRP function.
virtual void DoDispose(void)
Destructor implementation.