|
93 |
MakeDoubleAccessor (&YansWifiPhy::SetTxPowerStart, |
93 |
MakeDoubleAccessor (&YansWifiPhy::SetTxPowerStart, |
94 |
&YansWifiPhy::GetTxPowerStart), |
94 |
&YansWifiPhy::GetTxPowerStart), |
95 |
MakeDoubleChecker<double> ()) |
95 |
MakeDoubleChecker<double> ()) |
96 |
.AddAttribute ("RxNoise", |
96 |
.AddAttribute ("RxNoiseFigure", |
97 |
"Ratio of energy lost by receiver (dB).", |
97 |
"Loss (dB) in the Signal-to-Noise-Ratio due to non-idealities in the receiver." |
|
|
98 |
" Quoting Wikipedia, this is \"the difference in decibels (dB) between" |
99 |
" the noise output of the actual receiver to the noise output of an " |
100 |
" ideal receiver with the same overall gain and bandwidth when the receivers " |
101 |
" are connected to sources at the standard noise temperature T0 (usually 290 K)\". ", |
98 |
DoubleValue (7), |
102 |
DoubleValue (7), |
99 |
MakeDoubleAccessor (&YansWifiPhy::SetRxNoise, |
103 |
MakeDoubleAccessor (&YansWifiPhy::SetRxNoiseFigure, |
100 |
&YansWifiPhy::GetRxNoise), |
104 |
&YansWifiPhy::GetRxNoiseFigure), |
101 |
MakeDoubleChecker<double> ()) |
105 |
MakeDoubleChecker<double> ()) |
102 |
.AddAttribute ("Standard", "The standard chosen configures a set of transmission modes" |
106 |
.AddAttribute ("Standard", "The standard chosen configures a set of transmission modes" |
103 |
" and some PHY-specific constants.", |
107 |
" and some PHY-specific constants.", |
|
155 |
|
159 |
|
156 |
|
160 |
|
157 |
void |
161 |
void |
158 |
YansWifiPhy::SetRxNoise (double db) |
162 |
YansWifiPhy::SetRxNoiseFigure (double noiseFigureDb) |
159 |
{ |
163 |
{ |
160 |
NS_LOG_FUNCTION (this << db); |
164 |
NS_LOG_FUNCTION (this << noiseFigureDb); |
161 |
m_interference.SetNoiseFloorW (DbToRatio (db)); |
165 |
m_interference.SetNoiseFigure (DbToRatio (noiseFigureDb)); |
162 |
} |
166 |
} |
163 |
void |
167 |
void |
164 |
YansWifiPhy::SetTxPowerStart (double start) |
168 |
YansWifiPhy::SetTxPowerStart (double start) |
|
219 |
} |
223 |
} |
220 |
|
224 |
|
221 |
double |
225 |
double |
222 |
YansWifiPhy::GetRxNoise (void) const |
226 |
YansWifiPhy::GetRxNoiseFigure (void) const |
223 |
{ |
227 |
{ |
224 |
return RatioToDb (m_interference.GetNoiseFloorW ()); |
228 |
return RatioToDb (m_interference.GetNoiseFigure ()); |
225 |
} |
229 |
} |
226 |
double |
230 |
double |
227 |
YansWifiPhy::GetTxPowerStart (void) const |
231 |
YansWifiPhy::GetTxPowerStart (void) const |