A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RoutingExperiment Class Reference
+ Collaboration diagram for RoutingExperiment:

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 ( )

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

Member Function Documentation

void RoutingExperiment::CheckThroughput ( )
private

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

References bytesTotal, m_CSVfileName, m_nSinks, m_protocolName, m_txp, ns3::Now(), and packetsReceived.

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References ns3::CommandLine::AddValue(), m_CSVfileName, m_protocol, m_traceMobility, and ns3::CommandLine::Parse().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References bytesTotal, ns3::Packet::GetSize(), NS_LOG_UNCOND, packetsReceived, PrintReceivedPacket(), and ns3::Socket::Recv().

Referenced by SetupPacketReceive().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References ns3::Ipv4ListRoutingHelper::Add(), ns3::YansWifiChannelHelper::AddPropagationLoss(), ns3::Ipv4AddressHelper::Assign(), ns3::PositionAllocator::AssignStreams(), ns3::MobilityHelper::AssignStreams(), CheckThroughput(), ns3::ObjectFactory::Create(), ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Object::GetObject(), ns3::UniformRandomVariable::GetValue(), ns3::DsrMainHelper::Install(), ns3::OnOffHelper::Install(), ns3::InternetStackHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), list, m_CSVfileName, m_nSinks, m_protocol, m_protocolName, m_txp, first::nodes, NS_FATAL_ERROR, NS_LOG_INFO, port, ns3::ObjectFactory::Set(), ns3::YansWifiPhyHelper::Set(), ns3::OnOffHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::YansWifiPhyHelper::SetChannel(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::YansWifiChannelHelper::SetPropagationDelay(), ns3::WifiHelper::SetRemoteStationManager(), ns3::InternetStackHelper::SetRoutingHelper(), ns3::WifiHelper::SetStandard(), ns3::NqosWifiMacHelper::SetType(), ns3::ObjectFactory::SetTypeId(), SetupPacketReceive(), ns3::ApplicationContainer::Start(), and ns3::WIFI_PHY_STANDARD_80211b.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References ns3::Socket::Bind(), ns3::MakeCallback(), port, ReceivePacket(), and ns3::Socket::SetRecvCallback().

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32_t RoutingExperiment::bytesTotal
private

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

Referenced by CheckThroughput(), and ReceivePacket().

std::string RoutingExperiment::m_CSVfileName
private

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

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

int RoutingExperiment::m_nSinks
private

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

Referenced by CheckThroughput(), and Run().

uint32_t RoutingExperiment::m_protocol
private

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

Referenced by CommandSetup(), and Run().

std::string RoutingExperiment::m_protocolName
private

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

Referenced by CheckThroughput(), and Run().

bool RoutingExperiment::m_traceMobility
private

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

Referenced by CommandSetup().

double RoutingExperiment::m_txp
private

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

Referenced by CheckThroughput(), and Run().

uint32_t RoutingExperiment::packetsReceived
private

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

Referenced by CheckThroughput(), and ReceivePacket().

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: