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< Socket > | SetupPacketReceive (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 |
Definition at line 86 of file manet-routing-compare.cc.
RoutingExperiment::RoutingExperiment | ( | ) |
Definition at line 112 of file manet-routing-compare.cc.
|
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().
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().
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().
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().
|
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().
|
private |
Definition at line 101 of file manet-routing-compare.cc.
Referenced by CheckThroughput(), and ReceivePacket().
|
private |
Definition at line 104 of file manet-routing-compare.cc.
Referenced by CheckThroughput(), CommandSetup(), and Run().
|
private |
Definition at line 105 of file manet-routing-compare.cc.
Referenced by CheckThroughput(), and Run().
|
private |
Definition at line 109 of file manet-routing-compare.cc.
Referenced by CommandSetup(), and Run().
|
private |
Definition at line 106 of file manet-routing-compare.cc.
Referenced by CheckThroughput(), and Run().
|
private |
Definition at line 108 of file manet-routing-compare.cc.
Referenced by CommandSetup().
|
private |
Definition at line 107 of file manet-routing-compare.cc.
Referenced by CheckThroughput(), and Run().
|
private |
Definition at line 102 of file manet-routing-compare.cc.
Referenced by CheckThroughput(), and ReceivePacket().
|
private |
Definition at line 100 of file manet-routing-compare.cc.
Referenced by Run(), and SetupPacketReceive().