A Discrete-Event Network Simulator
API
MeshTest Class Reference
+ Collaboration diagram for MeshTest:

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...
 

Detailed Description

Definition at line 64 of file mesh.cc.

Constructor & Destructor Documentation

MeshTest::MeshTest ( )

Init test.

Definition at line 104 of file mesh.cc.

Member Function Documentation

void MeshTest::Configure ( int  argc,
char **  argv 
)

Configure test from command line arguments.

Definition at line 120 of file mesh.cc.

References ns3::CommandLine::AddValue(), second::cmd, 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().

+ Here is the call graph for this function:

void MeshTest::InstallApplication ( )
private
void MeshTest::InstallInternetStack ( )
private

Install internet m_stack on nodes.

Definition at line 199 of file mesh.cc.

References first::address, ns3::Ipv4AddressHelper::Assign(), ns3::InternetStackHelper::Install(), interfaces, meshDevices, nodes, and ns3::Ipv4AddressHelper::SetBase().

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MeshTest::Report ( )
private

Print mesh devices diagnostics.

Definition at line 235 of file mesh.cc.

References ns3::NetDeviceContainer::Begin(), ns3::NetDeviceContainer::End(), mesh, meshDevices, and ns3::MeshHelper::Report().

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MeshTest::Run ( void  )

Run test.

Definition at line 223 of file mesh.cc.

References CreateNodes(), InstallApplication(), InstallInternetStack(), m_totalTime, Report(), and ns3::Seconds().

+ Here is the call graph for this function:

Member Data Documentation

Ipv4InterfaceContainer MeshTest::interfaces
private

Definition at line 91 of file mesh.cc.

Referenced by InstallApplication(), and InstallInternetStack().

bool MeshTest::m_chan
private

Definition at line 82 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

uint32_t MeshTest::m_nIfaces
private

Definition at line 81 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

double MeshTest::m_packetInterval
private

Definition at line 79 of file mesh.cc.

Referenced by Configure(), and InstallApplication().

uint16_t MeshTest::m_packetSize
private

Definition at line 80 of file mesh.cc.

Referenced by Configure(), and InstallApplication().

bool MeshTest::m_pcap
private

Definition at line 83 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

double MeshTest::m_randomStart
private

Definition at line 77 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

std::string MeshTest::m_root
private

Definition at line 85 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

std::string MeshTest::m_stack
private

Definition at line 84 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

double MeshTest::m_step
private

Definition at line 76 of file mesh.cc.

Referenced by Configure(), and CreateNodes().

double MeshTest::m_totalTime
private

Definition at line 78 of file mesh.cc.

Referenced by Configure(), InstallApplication(), and Run().

int MeshTest::m_xSize
private

Definition at line 74 of file mesh.cc.

Referenced by Configure(), CreateNodes(), and InstallApplication().

int MeshTest::m_ySize
private

Definition at line 75 of file mesh.cc.

Referenced by Configure(), CreateNodes(), and InstallApplication().

MeshHelper MeshTest::mesh
private

Definition at line 93 of file mesh.cc.

Referenced by CreateNodes(), and Report().

NetDeviceContainer MeshTest::meshDevices
private

List of all mesh point devices.

Definition at line 89 of file mesh.cc.

Referenced by CreateNodes(), InstallInternetStack(), and Report().


The documentation for this class was generated from the following file: