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);
190 virtual void DoRun (
void);
202 :
TestCase (
"InterferenceHelperSequence")
210 dev->Send (p, dev->GetBroadcast (), 1);
231 phy->SetErrorRateModel (error);
232 phy->SetChannel (channel);
233 phy->SetDevice (dev);
234 phy->SetMobility (node);
238 mobility->SetPosition (pos);
243 dev->SetRemoteStationManager (manager);
267 propLoss->SetDefaultLoss (999);
271 DynamicCast<WifiNetDevice> (senderB->
GetDevice (0)));
275 DynamicCast<WifiNetDevice> (rxOnly->
GetDevice (0)));
279 DynamicCast<WifiNetDevice> (senderA->
GetDevice (0)));
283 DynamicCast<WifiNetDevice> (senderB->
GetDevice (0)));
330 virtual void DoRun (
void);
348 :
TestCase (
"Test case for Bug 555")
371 dev->Send (p, dev->GetBroadcast (), 1);
391 Ptr<Node> txNode = CreateObject<Node> ();
399 txPhy->SetErrorRateModel (txError);
400 txPhy->SetChannel (channel);
401 txPhy->SetDevice (txDev);
402 txPhy->SetMobility (txNode);
407 txMobility->SetPosition (
Vector (0.0, 0.0, 0.0));
410 txDev->SetMac (txMac);
411 txDev->SetPhy (txPhy);
430 uint32_t expectedWait1 = 1408 + (0 * 9) + 16 + 18;
431 Time expectedSecondTransmissionTime = MicroSeconds (expectedWait1) + Seconds (1.0);