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);
186 virtual void DoRun (
void);
198 :
TestCase (
"InterferenceHelperSequence")
206 dev->Send (p, dev->GetBroadcast (), 1);
227 phy->SetErrorRateModel (error);
228 phy->SetChannel (channel);
229 phy->SetDevice (dev);
230 phy->SetMobility (node);
234 mobility->SetPosition (pos);
239 dev->SetRemoteStationManager (manager);
263 propLoss->SetDefaultLoss (999);
267 DynamicCast<WifiNetDevice> (senderB->
GetDevice (0)));
271 DynamicCast<WifiNetDevice> (rxOnly->
GetDevice (0)));
275 DynamicCast<WifiNetDevice> (senderA->
GetDevice (0)));
279 DynamicCast<WifiNetDevice> (senderB->
GetDevice (0)));
323 virtual void DoRun (
void);
341 :
TestCase (
"Test case for Bug 555")
364 dev->Send (p, dev->GetBroadcast (), 1);
384 Ptr<Node> txNode = CreateObject<Node> ();
392 txPhy->SetErrorRateModel (txError);
393 txPhy->SetChannel (channel);
394 txPhy->SetDevice (txDev);
395 txPhy->SetMobility (txNode);
400 txMobility->SetPosition (
Vector (0.0, 0.0, 0.0));
403 txDev->SetMac (txMac);
404 txDev->SetPhy (txPhy);
423 uint32_t expectedWait1 = 1408 + (0 * 9) + 16 + 18;