OLD | NEW |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 CTTC | 3 * Copyright (c) 2009 CTTC |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 { | 123 { |
124 NS_LOG_FUNCTION (this << noisePsd); | 124 NS_LOG_FUNCTION (this << noisePsd); |
125 m_noise = noisePsd; | 125 m_noise = noisePsd; |
126 // we can initialize m_allSignal only now, because earlier we | 126 // we can initialize m_allSignal only now, because earlier we |
127 // didn't know what spectrum model was going to be used. | 127 // didn't know what spectrum model was going to be used. |
128 // we'll now create a zeroed SpectrumValue using the same | 128 // we'll now create a zeroed SpectrumValue using the same |
129 // SpectrumModel which is being specified for the noise. | 129 // SpectrumModel which is being specified for the noise. |
130 m_allSignals = Create<SpectrumValue> (noisePsd->GetSpectrumModel ()); | 130 m_allSignals = Create<SpectrumValue> (noisePsd->GetSpectrumModel ()); |
131 } | 131 } |
132 | 132 |
| 133 Ptr<const SpectrumValue>· |
| 134 SpectrumInterference::GetNoisePowerSpectralDensity (void) |
| 135 { |
| 136 NS_LOG_FUNCTION (this << m_noise); |
| 137 return m_noise; |
| 138 } |
| 139 |
| 140 |
133 void | 141 void |
134 SpectrumInterference::SetErrorModel (Ptr<SpectrumErrorModel> e) | 142 SpectrumInterference::SetErrorModel (Ptr<SpectrumErrorModel> e) |
135 { | 143 { |
136 NS_LOG_FUNCTION (this << e); | 144 NS_LOG_FUNCTION (this << e); |
137 m_errorModel = e; | 145 m_errorModel = e; |
138 } | 146 } |
139 | 147 |
140 | 148 |
141 | 149 |
142 | 150 |
143 } // namespace ns3 | 151 } // namespace ns3 |
144 | 152 |
145 | 153 |
OLD | NEW |