A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RoutingExperiment Class Reference

Public Member Functions

 RoutingExperiment ()
 
std::string CommandSetup (int argc, char **argv)
 
void Run (int nSinks, double txp, std::string CSVfileName)
 

Private Member Functions

void CheckThroughput ()
 
void ReceivePacket (Ptr< Socket > socket)
 
Ptr< SocketSetupPacketReceive (Ipv4Address addr, Ptr< Node > node)
 

Private Attributes

uint32_t bytesTotal
 
std::string m_CSVfileName
 
int m_nSinks
 
uint32_t m_protocol
 
std::string m_protocolName
 
bool m_traceMobility
 
double m_txp
 
uint32_t packetsReceived
 
uint32_t port
 

Detailed Description

Definition at line 86 of file manet-routing-compare.cc.

Constructor & Destructor Documentation

◆ RoutingExperiment()

RoutingExperiment::RoutingExperiment ( )

Definition at line 112 of file manet-routing-compare.cc.

Member Function Documentation

◆ CheckThroughput()

void RoutingExperiment::CheckThroughput ( )
private

◆ CommandSetup()

std::string RoutingExperiment::CommandSetup ( int  argc,
char **  argv 
)

Definition at line 188 of file manet-routing-compare.cc.

References second::cmd, m_CSVfileName, m_protocol, and m_traceMobility.

◆ ReceivePacket()

void RoutingExperiment::ReceivePacket ( Ptr< Socket socket)
private

◆ Run()

void RoutingExperiment::Run ( int  nSinks,
double  txp,
std::string  CSVfileName 
)

◆ SetupPacketReceive()

Ptr< Socket > RoutingExperiment::SetupPacketReceive ( Ipv4Address  addr,
Ptr< Node node 
)
private

Definition at line 176 of file manet-routing-compare.cc.

References ns3::MakeCallback(), port, ReceivePacket(), and sink.

Referenced by Run().

Member Data Documentation

◆ bytesTotal

uint32_t RoutingExperiment::bytesTotal
private

Definition at line 101 of file manet-routing-compare.cc.

Referenced by CheckThroughput(), and ReceivePacket().

◆ m_CSVfileName

std::string RoutingExperiment::m_CSVfileName
private

Definition at line 104 of file manet-routing-compare.cc.

Referenced by CheckThroughput(), CommandSetup(), and Run().

◆ m_nSinks

int RoutingExperiment::m_nSinks
private

Definition at line 105 of file manet-routing-compare.cc.

Referenced by CheckThroughput(), and Run().

◆ m_protocol

uint32_t RoutingExperiment::m_protocol
private

Definition at line 109 of file manet-routing-compare.cc.

Referenced by CommandSetup(), and Run().

◆ m_protocolName

std::string RoutingExperiment::m_protocolName
private

Definition at line 106 of file manet-routing-compare.cc.

Referenced by CheckThroughput(), and Run().

◆ m_traceMobility

bool RoutingExperiment::m_traceMobility
private

Definition at line 108 of file manet-routing-compare.cc.

Referenced by CommandSetup().

◆ m_txp

double RoutingExperiment::m_txp
private

Definition at line 107 of file manet-routing-compare.cc.

Referenced by CheckThroughput(), and Run().

◆ packetsReceived

uint32_t RoutingExperiment::packetsReceived
private

Definition at line 102 of file manet-routing-compare.cc.

Referenced by CheckThroughput(), and ReceivePacket().

◆ port

uint32_t RoutingExperiment::port
private

Definition at line 100 of file manet-routing-compare.cc.

Referenced by Run(), and SetupPacketReceive().


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