author | Nicola Baldo <nbaldo@cttc.es> |
Fri, 22 Mar 2013 13:14:38 +0100 | |
changeset 9266 | d26408b17360 |
parent 9227 | cca3ebe36928 |
child 10139 | 17a71cd49da3 |
permissions | -rw-r--r-- |
5271 | 1 |
/* |
2 |
* Copyright (c) 2009 University of Washington |
|
3 |
* |
|
4 |
* This program is free software; you can redistribute it and/or modify |
|
5 |
* it under the terms of the GNU General Public License version 2 as |
|
6 |
* published by the Free Software Foundation; |
|
7 |
* |
|
8 |
* This program is distributed in the hope that it will be useful, |
|
9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 |
* GNU General Public License for more details. |
|
12 |
* |
|
13 |
* You should have received a copy of the GNU General Public License |
|
14 |
* along with this program; if not, write to the Free Software |
|
15 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
16 |
*/ |
|
17 |
||
18 |
#include <iostream> |
|
19 |
#include <fstream> |
|
20 |
#include <vector> |
|
21 |
#include <string> |
|
22 |
||
23 |
#include "ns3/log.h" |
|
24 |
#include "ns3/callback.h" |
|
25 |
#include "ns3/abort.h" |
|
26 |
#include "ns3/test.h" |
|
27 |
#include "ns3/pcap-file.h" |
|
28 |
#include "ns3/config.h" |
|
29 |
#include "ns3/string.h" |
|
30 |
#include "ns3/uinteger.h" |
|
6065 | 31 |
#include "ns3/double.h" |
5271 | 32 |
#include "ns3/data-rate.h" |
33 |
#include "ns3/inet-socket-address.h" |
|
34 |
#include "ns3/internet-stack-helper.h" |
|
35 |
#include "ns3/ipv4-address-helper.h" |
|
36 |
#include "ns3/tcp-socket-factory.h" |
|
37 |
#include "ns3/yans-wifi-helper.h" |
|
38 |
#include "ns3/propagation-loss-model.h" |
|
39 |
#include "ns3/propagation-delay-model.h" |
|
40 |
#include "ns3/yans-wifi-channel.h" |
|
41 |
#include "ns3/yans-wifi-phy.h" |
|
42 |
#include "ns3/wifi-net-device.h" |
|
43 |
#include "ns3/mobility-helper.h" |
|
44 |
#include "ns3/constant-position-mobility-model.h" |
|
45 |
#include "ns3/nqos-wifi-mac-helper.h" |
|
46 |
#include "ns3/simulator.h" |
|
47 |
||
48 |
NS_LOG_COMPONENT_DEFINE ("WifiInterferenceTestSuite"); |
|
49 |
||
50 |
using namespace ns3; |
|
51 |
||
52 |
class WifiInterferenceTestCase : public TestCase |
|
53 |
{ |
|
54 |
public: |
|
55 |
WifiInterferenceTestCase (); |
|
56 |
virtual ~WifiInterferenceTestCase (); |
|
57 |
||
58 |
private: |
|
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
59 |
virtual void DoRun (void); |
5271 | 60 |
void ReceivePacket (Ptr<Socket> socket); |
61 |
static void GenerateTraffic (Ptr<Socket> socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval); |
|
62 |
void PrintEndSync (std::string context, uint32_t dataRate, double snr, double per); |
|
63 |
double WifiSimpleInterference (std::string phyMode, double Prss, double Irss, double delta, uint32_t PpacketSize, |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
64 |
uint32_t IpacketSize, bool verbose, InternetStackHelper internet); |
5271 | 65 |
double m_PER; |
66 |
double m_SNR; |
|
67 |
uint32_t m_DataRate; |
|
68 |
}; |
|
69 |
||
70 |
// Add some help text to this case to describe what it is intended to test |
|
71 |
WifiInterferenceTestCase::WifiInterferenceTestCase () |
|
72 |
: TestCase ("Test interference calculation when interfering frame exactly overlaps intended frame") |
|
73 |
{ |
|
74 |
} |
|
75 |
||
76 |
WifiInterferenceTestCase::~WifiInterferenceTestCase () |
|
77 |
{ |
|
78 |
} |
|
79 |
||
9227
cca3ebe36928
make non-static global debugging-only functions static inline (bug 1170).
Andrey Mazo <mazo@telum.ru>
parents:
7704
diff
changeset
|
80 |
static inline std::string |
7704
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
81 |
PrintReceivedPacket (Ptr<Socket> socket) |
5271 | 82 |
{ |
83 |
Address addr; |
|
84 |
socket->GetSockName (addr); |
|
7232 | 85 |
InetSocketAddress iaddr = InetSocketAddress::ConvertFrom (addr); |
7704
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
86 |
|
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
87 |
std::ostringstream oss; |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
88 |
oss << "Received one packet! Socket: " << iaddr.GetIpv4 () << " port: " << iaddr.GetPort (); |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
89 |
|
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
90 |
return oss.str (); |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
91 |
} |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
92 |
|
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
93 |
void |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
94 |
WifiInterferenceTestCase::ReceivePacket (Ptr<Socket> socket) |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
95 |
{ |
aef733235832
Bug 1170: Formulate best practices for dealing with unused debug variables.
Andrey Mazo <mazo@iitp.ru>
parents:
7256
diff
changeset
|
96 |
NS_LOG_UNCOND (PrintReceivedPacket (socket)); |
5271 | 97 |
} |
98 |
||
99 |
void |
|
100 |
WifiInterferenceTestCase::GenerateTraffic (Ptr<Socket> socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval) |
|
101 |
{ |
|
102 |
if (pktCount > 0) |
|
103 |
{ |
|
104 |
socket->Send (Create<Packet> (pktSize)); |
|
105 |
Simulator::Schedule (pktInterval, &WifiInterferenceTestCase::GenerateTraffic, socket, pktSize, pktCount-1, pktInterval); |
|
106 |
} |
|
107 |
else |
|
108 |
{ |
|
109 |
socket->Close (); |
|
110 |
} |
|
111 |
} |
|
112 |
||
113 |
void |
|
114 |
WifiInterferenceTestCase::PrintEndSync (std::string context, uint32_t dataRate, double snr, double per) |
|
115 |
{ |
|
116 |
NS_LOG_UNCOND ("EndSync: Received frame with dataRate=" << dataRate << ", SNR=" << snr << ", PER =" << per); |
|
117 |
m_PER = per; |
|
118 |
m_SNR = snr; |
|
119 |
m_DataRate = dataRate; |
|
120 |
} |
|
121 |
||
122 |
double |
|
123 |
WifiInterferenceTestCase::WifiSimpleInterference (std::string phyMode,double Prss, double Irss, double delta, uint32_t PpacketSize, uint32_t IpacketSize, bool verbose, InternetStackHelper internet) |
|
124 |
{ |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
125 |
|
5271 | 126 |
uint32_t numPackets = 1; |
127 |
double interval = 1.0; // seconds |
|
128 |
double startTime = 10.0; // seconds |
|
129 |
double distanceToRx = 100.0; // meters |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
130 |
|
5271 | 131 |
double offset = 91; // This is a magic number used to set the |
132 |
// transmit power, based on other configuration |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
133 |
|
5271 | 134 |
m_PER = 0; |
135 |
m_SNR = 0; |
|
136 |
m_DataRate = 0; |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
137 |
|
5271 | 138 |
// Convert to time object |
139 |
Time interPacketInterval = Seconds (interval); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
140 |
|
5271 | 141 |
// disable fragmentation for frames below 2200 bytes |
142 |
Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue ("2200")); |
|
143 |
// turn off RTS/CTS for frames below 2200 bytes |
|
144 |
Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue ("2200")); |
|
145 |
// Fix non-unicast data rate to be the same as that of unicast |
|
146 |
Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode", |
|
147 |
StringValue (phyMode)); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
148 |
|
5271 | 149 |
NodeContainer c; |
150 |
c.Create (3); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
151 |
|
5271 | 152 |
// The below set of helpers will help us to put together the wifi NICs we want |
153 |
WifiHelper wifi; |
|
154 |
wifi.SetStandard (WIFI_PHY_STANDARD_80211b); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
155 |
|
5271 | 156 |
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); |
157 |
// This is one parameter that matters when using FixedRssLossModel |
|
158 |
// set it to zero; otherwise, gain will be added |
|
159 |
wifiPhy.Set ("RxGain", DoubleValue (0) ); |
|
160 |
wifiPhy.Set ("CcaMode1Threshold", DoubleValue (0.0) ); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
161 |
|
6009
e1b696a1ed28
redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents:
5523
diff
changeset
|
162 |
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b |
6041 | 163 |
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO); |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
164 |
|
7252
c8200621e252
rerun check-style.py with uncrustify-0.58
Tom Henderson <tomh@tomh.org>
parents:
7232
diff
changeset
|
165 |
YansWifiChannelHelper wifiChannel; |
5271 | 166 |
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel"); |
167 |
wifiChannel.AddPropagationLoss ("ns3::LogDistancePropagationLossModel"); |
|
168 |
wifiPhy.SetChannel (wifiChannel.Create ()); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
169 |
|
5271 | 170 |
// Add a non-QoS upper mac, and disable rate control |
171 |
NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default (); |
|
172 |
wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", |
|
7256
b04ba6772f8c
rerun check-style.py at default level to enforce space after function name
Tom Henderson <tomh@tomh.org>
parents:
7252
diff
changeset
|
173 |
"DataMode",StringValue (phyMode), |
b04ba6772f8c
rerun check-style.py at default level to enforce space after function name
Tom Henderson <tomh@tomh.org>
parents:
7252
diff
changeset
|
174 |
"ControlMode",StringValue (phyMode)); |
5271 | 175 |
// Set it to adhoc mode |
176 |
wifiMac.SetType ("ns3::AdhocWifiMac"); |
|
177 |
NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c.Get (0)); |
|
178 |
// This will disable these sending devices from detecting a signal |
|
179 |
// so that they do not backoff |
|
180 |
wifiPhy.Set ("EnergyDetectionThreshold", DoubleValue (0.0) ); |
|
181 |
wifiPhy.Set ("TxGain", DoubleValue (offset + Prss) ); |
|
182 |
devices.Add (wifi.Install (wifiPhy, wifiMac, c.Get (1))); |
|
183 |
wifiPhy.Set ("TxGain", DoubleValue (offset + Irss) ); |
|
184 |
devices.Add (wifi.Install (wifiPhy, wifiMac, c.Get (2))); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
185 |
|
5271 | 186 |
// Note that with FixedRssLossModel, the positions below are not |
187 |
// used for received signal strength. |
|
188 |
MobilityHelper mobility; |
|
189 |
Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator> (); |
|
190 |
positionAlloc->Add (Vector (0.0, 0.0, 0.0)); |
|
191 |
positionAlloc->Add (Vector (distanceToRx, 0.0, 0.0)); |
|
192 |
positionAlloc->Add (Vector (-1*distanceToRx, 0.0, 0.0)); |
|
193 |
mobility.SetPositionAllocator (positionAlloc); |
|
194 |
mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); |
|
195 |
mobility.Install (c); |
|
196 |
||
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
197 |
// InternetStackHelper internet; |
5271 | 198 |
internet.Install (c); |
199 |
||
200 |
Ipv4AddressHelper ipv4; |
|
201 |
NS_LOG_INFO ("Assign IP Addresses."); |
|
202 |
ipv4.SetBase ("10.1.1.0", "255.255.255.0"); |
|
203 |
Ipv4InterfaceContainer i = ipv4.Assign (devices); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
204 |
|
5271 | 205 |
TypeId tid = TypeId::LookupByName ("ns3::UdpSocketFactory"); |
206 |
Ptr<Socket> recvSink = Socket::CreateSocket (c.Get (0), tid); |
|
7256
b04ba6772f8c
rerun check-style.py at default level to enforce space after function name
Tom Henderson <tomh@tomh.org>
parents:
7252
diff
changeset
|
207 |
InetSocketAddress local = InetSocketAddress (Ipv4Address ("10.1.1.1"), 80); |
5271 | 208 |
recvSink->Bind (local); |
209 |
recvSink->SetRecvCallback (MakeCallback (&WifiInterferenceTestCase::ReceivePacket, this)); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
210 |
|
5271 | 211 |
Ptr<Socket> source = Socket::CreateSocket (c.Get (1), tid); |
212 |
InetSocketAddress remote = InetSocketAddress (Ipv4Address ("255.255.255.255"), 80); |
|
213 |
source->Connect (remote); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
214 |
|
5271 | 215 |
// Interferer will send to a different port; we will not see a |
216 |
// "Received packet" message |
|
217 |
Ptr<Socket> interferer = Socket::CreateSocket (c.Get (2), tid); |
|
218 |
InetSocketAddress interferingAddr = InetSocketAddress (Ipv4Address ("255.255.255.255"), 49000); |
|
219 |
interferer->Connect (interferingAddr); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
220 |
|
5271 | 221 |
Config::Connect ("/NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/EndSync", MakeCallback (&WifiInterferenceTestCase::PrintEndSync, this)); |
222 |
// Tracing |
|
5369
86beb5869f67
split examples, add examples, tweak test.py to minimize builds
Craig Dowell <craigdo@ee.washington.edu>
parents:
5271
diff
changeset
|
223 |
// wifiPhy.EnablePcap ("wifi-simple-interference", devices.Get (0)); |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
224 |
|
5523
86e84169c725
Call Simulator::ScheduleWithContext from ns3::Channel subclasses when sending packets to other nodes
Guillaume Seguin <guillaume@segu.in>
parents:
5369
diff
changeset
|
225 |
Simulator::ScheduleWithContext (source->GetNode ()->GetId (), |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
226 |
Seconds (startTime), &GenerateTraffic, |
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
227 |
source, PpacketSize, numPackets, interPacketInterval); |
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
228 |
|
5523
86e84169c725
Call Simulator::ScheduleWithContext from ns3::Channel subclasses when sending packets to other nodes
Guillaume Seguin <guillaume@segu.in>
parents:
5369
diff
changeset
|
229 |
Simulator::ScheduleWithContext (interferer->GetNode ()->GetId (), |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
230 |
Seconds (startTime + delta/1000000.0), &GenerateTraffic, |
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
231 |
interferer, IpacketSize, numPackets, interPacketInterval); |
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
232 |
|
5271 | 233 |
Simulator::Run (); |
234 |
Simulator::Destroy (); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
235 |
|
5271 | 236 |
return m_PER; |
237 |
} |
|
238 |
||
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
239 |
void |
5271 | 240 |
WifiInterferenceTestCase::DoRun (void) |
241 |
{ |
|
242 |
||
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6068
diff
changeset
|
243 |
std::string phyMode ("DsssRate1Mbps"); |
5271 | 244 |
double Prss = -90; // -dBm |
245 |
double Irss = -90; // -dBm |
|
246 |
double delta = 0; // microseconds |
|
247 |
uint32_t PpacketSize = 1000; // bytes |
|
248 |
uint32_t IpacketSize = 1000; // bytes |
|
249 |
bool verbose = false; |
|
250 |
double PER, PER1, PER2; |
|
251 |
InternetStackHelper internet; |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
252 |
|
5271 | 253 |
// Compute the packet error rate (PER) when delta=0 microseconds. This |
254 |
// means that the interferer arrives at exactly the same time as the |
|
255 |
// intended packet |
|
256 |
PER = WifiSimpleInterference (phyMode,Prss,Irss,delta,PpacketSize,IpacketSize,verbose,internet); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
257 |
|
5271 | 258 |
// Now rerun this test case and compute the PER when the delta time between |
259 |
// arrival of the intended frame and interferer is 1 microsecond. |
|
260 |
delta = 1; |
|
261 |
PER1 = WifiSimpleInterference (phyMode,Prss,Irss,delta,PpacketSize,IpacketSize,verbose,internet); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
262 |
|
5271 | 263 |
// Now rerun this test case and compute the PER when the delta time between |
264 |
// arrival of the intended frame and interferer is 2 microseconds. |
|
265 |
delta = 2; |
|
266 |
PER2 = WifiSimpleInterference (phyMode,Prss,Irss,delta,PpacketSize,IpacketSize,verbose,internet); |
|
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
267 |
|
5271 | 268 |
double PERDiff1 = PER - PER1; |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
269 |
|
5271 | 270 |
double PERDiff2 = PER1 - PER2; |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
271 |
|
5271 | 272 |
NS_TEST_ASSERT_MSG_EQ (PERDiff1, PERDiff2, |
7191
7b9f3eba908b
test coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6775
diff
changeset
|
273 |
"The PER difference due to 1 microsecond difference in arrival shouldn't depend on absolute arrival"); |
5271 | 274 |
} |
275 |
||
276 |
class WifiInterferenceTestSuite : public TestSuite |
|
277 |
{ |
|
278 |
public: |
|
279 |
WifiInterferenceTestSuite (); |
|
280 |
}; |
|
281 |
||
282 |
WifiInterferenceTestSuite::WifiInterferenceTestSuite () |
|
283 |
: TestSuite ("ns3-wifi-interference", UNIT) |
|
284 |
{ |
|
9266
d26408b17360
bug 1563: get rid of default argument value in AddTestCase
Nicola Baldo <nbaldo@cttc.es>
parents:
9227
diff
changeset
|
285 |
AddTestCase (new WifiInterferenceTestCase, TestCase::QUICK); |
5271 | 286 |
} |
287 |
||
6774
034f362af24d
Make all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6360
diff
changeset
|
288 |
static WifiInterferenceTestSuite wifiInterferenceTestSuite; |
5271 | 289 |