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 |
Addresses of interfaces: More... | |
bool | m_ascii |
ASCII. More... | |
bool | m_chan |
channel More... | |
uint32_t | m_nIfaces |
number interfaces More... | |
double | m_packetInterval |
packet interval More... | |
uint16_t | m_packetSize |
packet size More... | |
bool | m_pcap |
PCAP. More... | |
double | m_randomStart |
random start More... | |
std::string | m_root |
root More... | |
std::string | m_stack |
stack More... | |
double | m_step |
step More... | |
double | m_totalTime |
total time More... | |
int | m_xSize |
X size. More... | |
int | m_ySize |
Y size. More... | |
MeshHelper | mesh |
MeshHelper. Report is not static methods. More... | |
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.
argc | command line argument count |
argv | command line arguments |
Definition at line 178 of file mesh.cc.
References second::cmd, m_ascii, m_chan, m_nIfaces, m_packetInterval, m_packetSize, m_pcap, m_randomStart, m_root, m_stack, m_step, m_totalTime, m_xSize, m_ySize, and NS_LOG_DEBUG.
|
private |
Create nodes and setup their mobility.
Definition at line 205 of file mesh.cc.
References ns3::MeshHelper::AssignStreams(), ns3::NodeContainer::Create(), ns3::YansWifiChannelHelper::Create(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::AsciiTraceHelperForDevice::EnableAsciiAll(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::MeshHelper::Install(), ns3::Mac48Address::IsBroadcast(), m_ascii, m_chan, m_nIfaces, m_pcap, m_randomStart, m_root, m_stack, m_step, m_xSize, m_ySize, mesh, meshDevices, third::mobility, nodes, ns3::Seconds(), ns3::YansWifiPhyHelper::SetChannel(), ns3::MeshHelper::SetMacType(), ns3::MeshHelper::SetNumberOfInterfaces(), ns3::MeshHelper::SetSpreadInterfaceChannels(), and ns3::MeshHelper::SetStackInstaller().
Referenced by Run().
|
private |
Install applications.
Definition at line 275 of file mesh.cc.
References first::clientApps, first::echoClient, first::echoServer, ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), interfaces, m_packetInterval, m_packetSize, m_totalTime, m_xSize, m_ySize, ns3::MakeCallback(), nodes, RxTrace(), ns3::Seconds(), first::serverApps, and TxTrace().
Referenced by Run().
|
private |
Install internet m_stack on nodes.
Definition at line 266 of file mesh.cc.
References first::address, ns3::InternetStackHelper::Install(), interfaces, meshDevices, and nodes.
Referenced by Run().
|
private |
Print mesh devices diagnostics.
Definition at line 308 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 295 of file mesh.cc.
References CreateNodes(), g_udpRxCount, g_udpTxCount, InstallApplication(), InstallInternetStack(), m_totalTime, Report(), and ns3::Seconds().
|
private |
Addresses of interfaces:
Definition at line 148 of file mesh.cc.
Referenced by InstallApplication(), and InstallInternetStack().
|
private |
|
private |
|
private |
number interfaces
Definition at line 137 of file mesh.cc.
Referenced by Configure(), and CreateNodes().
|
private |
packet interval
Definition at line 135 of file mesh.cc.
Referenced by Configure(), and InstallApplication().
|
private |
packet size
Definition at line 136 of file mesh.cc.
Referenced by Configure(), and InstallApplication().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
total time
Definition at line 134 of file mesh.cc.
Referenced by Configure(), InstallApplication(), and Run().
|
private |
X size.
Definition at line 130 of file mesh.cc.
Referenced by Configure(), CreateNodes(), and InstallApplication().
|
private |
Y size.
Definition at line 131 of file mesh.cc.
Referenced by Configure(), CreateNodes(), and InstallApplication().
|
private |
MeshHelper. Report is not static methods.
Definition at line 150 of file mesh.cc.
Referenced by CreateNodes(), and Report().
|
private |
List of all mesh point devices.
Definition at line 146 of file mesh.cc.
Referenced by CreateNodes(), InstallInternetStack(), and Report().
|
private |
List of network nodes.
Definition at line 144 of file mesh.cc.
Referenced by CreateNodes(), InstallApplication(), and InstallInternetStack().