LEFT | RIGHT |
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 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 { | 116 { |
117 NS_LOG_UNCOND ("EndSync: Received frame with dataRate=" << dataRate << ", SNR
=" << snr << ", PER =" << per); | 117 NS_LOG_UNCOND ("EndSync: Received frame with dataRate=" << dataRate << ", SNR
=" << snr << ", PER =" << per); |
118 m_PER = per; | 118 m_PER = per; |
119 m_SNR = snr; | 119 m_SNR = snr; |
120 m_DataRate = dataRate; | 120 m_DataRate = dataRate; |
121 } | 121 } |
122 | 122 |
123 double· | 123 double· |
124 WifiInterferenceTestCase::WifiSimpleInterference (std::string phyMode,double Prs
s, double Irss, double delta, uint32_t PpacketSize, uint32_t IpacketSize, bool v
erbose, InternetStackHelper internet, WifiPhyStandard wifiStandard) | 124 WifiInterferenceTestCase::WifiSimpleInterference (std::string phyMode,double Prs
s, double Irss, double delta, uint32_t PpacketSize, uint32_t IpacketSize, bool v
erbose, InternetStackHelper internet, WifiPhyStandard wifiStandard) |
125 { | 125 { |
126 NS_UNUSED(verbose); | 126 NS_UNUSED (verbose); |
127 | 127 |
128 uint32_t numPackets = 1; | 128 uint32_t numPackets = 1; |
129 double interval = 1.0; // seconds | 129 double interval = 1.0; // seconds |
130 double startTime = 10.0; // seconds | 130 double startTime = 10.0; // seconds |
131 double distanceToRx = 100.0; // meters | 131 double distanceToRx = 100.0; // meters |
132 | 132 |
133 double offset = 91; // This is a magic number used to set the· | 133 double offset = 91; // This is a magic number used to set the· |
134 // transmit power, based on other configuration | 134 // transmit power, based on other configuration |
135 | 135 |
136 m_PER = 0; | 136 m_PER = 0; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 }; | 319 }; |
320 | 320 |
321 WifiInterferenceTestSuite::WifiInterferenceTestSuite () | 321 WifiInterferenceTestSuite::WifiInterferenceTestSuite () |
322 : TestSuite ("ns3-wifi-interference", UNIT) | 322 : TestSuite ("ns3-wifi-interference", UNIT) |
323 { | 323 { |
324 AddTestCase (new WifiInterferenceTestCase, TestCase::QUICK); | 324 AddTestCase (new WifiInterferenceTestCase, TestCase::QUICK); |
325 } | 325 } |
326 | 326 |
327 static WifiInterferenceTestSuite wifiInterferenceTestSuite; | 327 static WifiInterferenceTestSuite wifiInterferenceTestSuite; |
328 | 328 |
LEFT | RIGHT |