23 #include "ns3/wifi-net-device.h"
24 #include "ns3/yans-wifi-channel.h"
25 #include "ns3/adhoc-wifi-mac.h"
26 #include "ns3/yans-wifi-phy.h"
27 #include "ns3/arf-wifi-manager.h"
28 #include "ns3/propagation-delay-model.h"
29 #include "ns3/propagation-loss-model.h"
30 #include "ns3/error-rate-model.h"
31 #include "ns3/yans-error-rate-model.h"
32 #include "ns3/constant-position-mobility-model.h"
34 #include "ns3/simulator.h"
36 #include "ns3/object-factory.h"
37 #include "ns3/dca-txop.h"
38 #include "ns3/mac-rx-middle.h"
39 #include "ns3/pointer.h"
40 #include "ns3/rng-seed-manager.h"
49 virtual void DoRun (
void);
69 dev->Send (p, dev->GetBroadcast (), 1);
83 phy->SetErrorRateModel (error);
84 phy->SetChannel (channel);
86 phy->SetMobility (node);
90 mobility->SetPosition (pos);
95 dev->SetRemoteStationManager (manager);
187 virtual void DoRun (
void);
199 :
TestCase (
"InterferenceHelperSequence")
207 dev->Send (p, dev->GetBroadcast (), 1);
228 phy->SetErrorRateModel (error);
229 phy->SetChannel (channel);
230 phy->SetDevice (dev);
231 phy->SetMobility (node);
235 mobility->SetPosition (pos);
240 dev->SetRemoteStationManager (manager);
264 propLoss->SetDefaultLoss (999);
268 DynamicCast<WifiNetDevice> (senderB->
GetDevice (0)));
272 DynamicCast<WifiNetDevice> (rxOnly->
GetDevice (0)));
276 DynamicCast<WifiNetDevice> (senderA->
GetDevice (0)));
280 DynamicCast<WifiNetDevice> (senderB->
GetDevice (0)));
324 virtual void DoRun (
void);
342 :
TestCase (
"Test case for Bug 555")
365 dev->Send (p, dev->GetBroadcast (), 1);
385 Ptr<Node> txNode = CreateObject<Node> ();
393 txPhy->SetErrorRateModel (txError);
394 txPhy->SetChannel (channel);
395 txPhy->SetDevice (txDev);
396 txPhy->SetMobility (txNode);
401 txMobility->SetPosition (
Vector (0.0, 0.0, 0.0));
404 txDev->SetMac (txMac);
405 txDev->SetPhy (txPhy);
424 uint32_t expectedWait1 = 1408 + (0 * 9) + 16 + 18;