Public Member Functions | |
WifiTest () | |
virtual bool | RunTests (void) |
Private Member Functions | |
void | RunOne (void) |
void | CreateOne (Vector pos, Ptr< YansWifiChannel > channel) |
void | SendOnePacket (Ptr< WifiNetDevice > dev) |
Private Attributes | |
ObjectFactory | m_manager |
ObjectFactory | m_mac |
ObjectFactory | m_propDelay |
Definition at line 20 of file wifi-test.cc.
ns3::WifiTest::WifiTest | ( | ) |
Definition at line 36 of file wifi-test.cc.
void ns3::WifiTest::CreateOne | ( | Vector | pos, | |
Ptr< YansWifiChannel > | channel | |||
) | [private] |
Definition at line 48 of file wifi-test.cc.
References ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), m_mac, m_manager, ns3::Simulator::Schedule(), ns3::Seconds(), and SendOnePacket().
Referenced by RunOne().
void ns3::WifiTest::RunOne | ( | void | ) | [private] |
Definition at line 75 of file wifi-test.cc.
References ns3::ObjectFactory::Create(), CreateOne(), ns3::Simulator::Destroy(), m_propDelay, ns3::Simulator::Run(), ns3::Seconds(), and ns3::Simulator::Stop().
Referenced by RunTests().
bool ns3::WifiTest::RunTests | ( | void | ) | [virtual] |
Implements ns3::Test.
Definition at line 94 of file wifi-test.cc.
References m_mac, m_manager, m_propDelay, RunOne(), and ns3::ObjectFactory::SetTypeId().
void ns3::WifiTest::SendOnePacket | ( | Ptr< WifiNetDevice > | dev | ) | [private] |
Definition at line 41 of file wifi-test.cc.
Referenced by CreateOne().
ObjectFactory ns3::WifiTest::m_mac [private] |
Definition at line 32 of file wifi-test.cc.
Referenced by CreateOne(), and RunTests().
ObjectFactory ns3::WifiTest::m_manager [private] |
Definition at line 31 of file wifi-test.cc.
Referenced by CreateOne(), and RunTests().
ObjectFactory ns3::WifiTest::m_propDelay [private] |
Definition at line 33 of file wifi-test.cc.
Referenced by RunOne(), and RunTests().