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 paramter",
 
   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);
 
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 "...
 
AttributeValue implementation for Boolean. 
 
void SetCellId(uint16_t cellId)
 
void SetAlpha(double value)
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
void CalculateSrsTxPower()
 
double m_referenceSignalPower
 
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)
 
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)
Report a fatal error with a message and terminate. 
 
TracedCallback< uint16_t, uint16_t, double > m_reportPucchTxPower
 
void SetPcmax(double value)
 
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source. 
 
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
 
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...
 
static TypeId GetTypeId(void)
 
std::vector< int16_t > m_PoUePusch
 
void CalculatePucchTxPower()
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
void SetPoNominalPusch(int16_t value)
 
Ptr< const AttributeChecker > MakeBooleanChecker(void)
 
std::vector< double > m_alpha
 
void CalculatePuschTxPower()
 
This class realizes Uplink Power Control functionality. 
 
void SetRnti(uint16_t rnti)
 
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
 
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)
 
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
 
void ReportTpc(uint8_t tpc)
 
virtual void DoDispose(void)
Destructor implementation.