Public Member Functions | |
MeshTest () | |
Init test. More... | |
void | Configure (int argc, char **argv) |
Configure test from command line arguments. More... | |
int | Run () |
Run test. More... | |
Private Member Functions | |
void | CreateNodes () |
Create nodes and setup their mobility. More... | |
void | InstallApplication () |
Install applications. More... | |
void | InstallInternetStack () |
Install internet m_stack on nodes. More... | |
void | Report () |
Print mesh devices diagnostics. More... | |
Private Attributes | |
Ipv4InterfaceContainer | interfaces |
bool | m_chan |
uint32_t | m_nIfaces |
double | m_packetInterval |
uint16_t | m_packetSize |
bool | m_pcap |
double | m_randomStart |
std::string | m_root |
std::string | m_stack |
double | m_step |
double | m_totalTime |
int | m_xSize |
int | m_ySize |
MeshHelper | mesh |
NetDeviceContainer | meshDevices |
List of all mesh point devices. More... | |
NodeContainer | nodes |
List of network nodes. More... | |
void MeshTest::Configure | ( | int | argc, |
char ** | argv | ||
) |
Configure test from command line arguments.
Definition at line 119 of file mesh.cc.
References ns3::CommandLine::AddValue(), m_chan, m_nIfaces, m_packetInterval, m_packetSize, m_pcap, m_randomStart, m_root, m_stack, m_step, m_totalTime, m_xSize, m_ySize, NS_LOG_DEBUG, and ns3::CommandLine::Parse().
Referenced by main().
|
private |
Create nodes and setup their mobility.
Definition at line 144 of file mesh.cc.
References ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::MeshHelper::Install(), ns3::MobilityHelper::Install(), m_chan, m_nIfaces, m_pcap, m_randomStart, m_root, m_stack, m_step, m_xSize, m_ySize, mesh, meshDevices, nodes, ns3::YansWifiPhyHelper::SetChannel(), ns3::MeshHelper::SetMacType(), ns3::MobilityHelper::SetMobilityModel(), ns3::MeshHelper::SetNumberOfInterfaces(), ns3::MobilityHelper::SetPositionAllocator(), ns3::MeshHelper::SetSpreadInterfaceChannels(), and ns3::MeshHelper::SetStackInstaller().
Referenced by Run().
|
private |
Install applications.
Definition at line 207 of file mesh.cc.
References first::clientApps, first::echoClient, first::echoServer, ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::UdpEchoServerHelper::Install(), interfaces, m_packetInterval, m_packetSize, m_totalTime, m_xSize, m_ySize, nodes, first::serverApps, ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
Referenced by Run().
|
private |
Install internet m_stack on nodes.
Definition at line 198 of file mesh.cc.
References first::address, ns3::Ipv4AddressHelper::Assign(), ns3::InternetStackHelper::Install(), interfaces, meshDevices, nodes, and ns3::Ipv4AddressHelper::SetBase().
Referenced by Run().
|
private |
Print mesh devices diagnostics.
Definition at line 234 of file mesh.cc.
References ns3::NetDeviceContainer::Begin(), ns3::NetDeviceContainer::End(), mesh, meshDevices, and ns3::MeshHelper::Report().
Referenced by Run().
int MeshTest::Run | ( | void | ) |
Run test.
Definition at line 222 of file mesh.cc.
References CreateNodes(), InstallApplication(), InstallInternetStack(), m_totalTime, and Report().
Referenced by main().
|
private |
Definition at line 90 of file mesh.cc.
Referenced by InstallApplication(), and InstallInternetStack().
|
private |
Definition at line 81 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 80 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 78 of file mesh.cc.
Referenced by Configure(), and InstallApplication().
|
private |
Definition at line 79 of file mesh.cc.
Referenced by Configure(), and InstallApplication().
|
private |
Definition at line 82 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 76 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 84 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 83 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 75 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
Definition at line 77 of file mesh.cc.
Referenced by Configure(), InstallApplication(), and Run().
|
private |
Definition at line 73 of file mesh.cc.
Referenced by Configure(), CreateNodes(), and InstallApplication().
|
private |
Definition at line 74 of file mesh.cc.
Referenced by Configure(), CreateNodes(), and InstallApplication().
|
private |
Definition at line 92 of file mesh.cc.
Referenced by CreateNodes(), and Report().
|
private |
List of all mesh point devices.
Definition at line 88 of file mesh.cc.
Referenced by CreateNodes(), InstallInternetStack(), and Report().
|
private |
List of network nodes.
Definition at line 86 of file mesh.cc.
Referenced by visualizer.core.Visualizer::autoscale_view(), visualizer.core.Visualizer::center_on_node(), CreateNodes(), visualizer.core.Visualizer::get_node(), InstallApplication(), InstallInternetStack(), visualizer.core.Visualizer::scan_topology(), visualizer.core.Visualizer::select_node(), and visualizer.core.Visualizer::set_follow_node().