equal
deleted
inserted
replaced
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 |