src/devices/lte/model/jakes-fading-loss-model.cc
changeset 6720 16271e640e04
parent 6711 12e5fe7bc252
equal deleted inserted replaced
6719:277546e1dc88 6720:16271e640e04
   151    * New York: John Wiley & Sons Inc. ISBN 0-471-43720-4
   151    * New York: John Wiley & Sons Inc. ISBN 0-471-43720-4
   152    */
   152    */
   153 
   153 
   154   // number of path = M
   154   // number of path = M
   155   // x = 1 -> M=6, x = 2 -> M=8, x = 3 -> M=10, x = 4 -> M=12
   155   // x = 1 -> M=6, x = 2 -> M=8, x = 3 -> M=10, x = 4 -> M=12
   156   int x = m_nbOfPaths.GetValue ();
   156   int x = static_cast<int> (m_nbOfPaths.GetValue ());
   157 
   157 
   158   for (int i = 0; i < downlinkSubChannels; i++)
   158   for (int i = 0; i < downlinkSubChannels; i++)
   159     {
   159     {
   160       // StartJakes allow us to select a window of 0.5ms into the Jakes realization lasting 3s.
   160       // StartJakes allow us to select a window of 0.5ms into the Jakes realization lasting 3s.
   161       int startJakes = m_startJakes.GetValue ();
   161       int startJakes = static_cast<int> (m_startJakes.GetValue ());
   162 
   162 
   163       MultipathForTimeDomain multipathForTimeDomain;
   163       MultipathForTimeDomain multipathForTimeDomain;
   164 
   164 
   165       if (x == 1)
   165       if (x == 1)
   166         {
   166         {
   313     {
   313     {
   314       SetValue ();
   314       SetValue ();
   315       SetLastUpdate ();
   315       SetLastUpdate ();
   316     }
   316     }
   317 
   317 
   318   int now_ms = Simulator::Now ().GetSeconds () * 1000;
   318   int now_ms = static_cast<int> (Simulator::Now ().GetSeconds () * 1000);
   319   int lastUpdate_ms = GetLastUpdate ().GetSeconds () * 1000;
   319   int lastUpdate_ms = static_cast<int> (GetLastUpdate ().GetSeconds () * 1000);
   320   int index = now_ms - lastUpdate_ms;
   320   int index = now_ms - lastUpdate_ms;
   321 
   321 
   322   NS_LOG_FUNCTION (this << subChannel << now_ms
   322   NS_LOG_FUNCTION (this << subChannel << now_ms
   323                         << lastUpdate_ms << index << m_multipath.at (subChannel).at (index));
   323                         << lastUpdate_ms << index << m_multipath.at (subChannel).at (index));
   324 
   324