src/lte/model/lte-ue-phy.cc
changeset 8664 ab4c821fc251
parent 8647 f6fad6b36154
child 8670 8f63d16fb2e8
equal deleted inserted replaced
8663:5e7f07723483 8664:ab4c821fc251
   150                    "In this model, we consider T0 = 290K.",
   150                    "In this model, we consider T0 = 290K.",
   151                    DoubleValue (9.0),
   151                    DoubleValue (9.0),
   152                    MakeDoubleAccessor (&LteUePhy::SetNoiseFigure, 
   152                    MakeDoubleAccessor (&LteUePhy::SetNoiseFigure, 
   153                                        &LteUePhy::GetNoiseFigure),
   153                                        &LteUePhy::GetNoiseFigure),
   154                    MakeDoubleChecker<double> ())
   154                    MakeDoubleChecker<double> ())
       
   155     .AddAttribute ("MacToChannelDelay",
       
   156                    "The delay in TTI units that occurs between a scheduling decision in the MAC and the actual start of the transmission by the PHY. This is intended to be used to model the latency of real PHY and MAC implementations.",
       
   157                    UintegerValue (1),
       
   158                    MakeUintegerAccessor (&LteUePhy::m_macChTtiDelay),
       
   159                    MakeUintegerChecker<uint8_t> (1,255))
   155   ;
   160   ;
   156   return tid;
   161   return tid;
   157 }
   162 }
   158 
   163 
   159 void
   164 void
   280 
   285 
   281   return psd;
   286   return psd;
   282 }
   287 }
   283 
   288 
   284 void
   289 void
   285 LteUePhy::GenerateCqiFeedback (const SpectrumValue& sinr)
   290 LteUePhy::GenerateCqiReport (const SpectrumValue& sinr)
   286 {
   291 {
   287   NS_LOG_FUNCTION (this);
   292   NS_LOG_FUNCTION (this);
   288   // check periodic wideband CQI
   293   // check periodic wideband CQI
   289   if (Simulator::Now () > m_p10CqiLast + m_p10CqiPeriocity)
   294   if (Simulator::Now () > m_p10CqiLast + m_p10CqiPeriocity)
   290     {
   295     {