src/spectrum/model/spectrum-interference.cc
changeset 7581 6ac3fa410583
parent 7385 10beb0e53130
child 7597 967156fc3b7f
equal deleted inserted replaced
7580:3ae0a64434f0 7581:6ac3fa410583
   108 
   108 
   109 void
   109 void
   110 SpectrumInterference::ConditionallyEvaluateChunk ()
   110 SpectrumInterference::ConditionallyEvaluateChunk ()
   111 {
   111 {
   112   NS_LOG_FUNCTION (this);
   112   NS_LOG_FUNCTION (this);
   113   if (m_receiving && (Now () > m_lastChangeTime))
   113   NS_LOG_LOGIC ("m_receiving: " << m_receiving );
       
   114   NS_LOG_LOGIC ("m_lastChangeTime: " << m_lastChangeTime << " Now: " << Now ());
       
   115   bool condition  = m_receiving && (Now () > m_lastChangeTime);
       
   116   NS_LOG_LOGIC ("if condition: " << condition);
       
   117   if (condition)
   114     {
   118     {
   115       SpectrumValue sinr = (*m_rxSignal) / ((*m_allSignals) - (*m_rxSignal) + (*m_noise));
   119       SpectrumValue sinr = (*m_rxSignal) / ((*m_allSignals) - (*m_rxSignal) + (*m_noise));
   116       Time duration = Now () - m_lastChangeTime;
   120       Time duration = Now () - m_lastChangeTime;
       
   121       NS_LOG_LOGIC ("calling m_errorModel->EvaluateChunk (sinr, duration)");
   117       m_errorModel->EvaluateChunk (sinr, duration);
   122       m_errorModel->EvaluateChunk (sinr, duration);
   118     }
   123     }
   119 }
   124 }
   120 
   125 
   121 void
   126 void