A Discrete-Event Network Simulator
API
power-adaptation-distance.cc File Reference
#include "ns3/gnuplot.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/uinteger.h"
#include "ns3/double.h"
#include "ns3/log.h"
#include "ns3/yans-wifi-helper.h"
#include "ns3/ssid.h"
#include "ns3/mobility-helper.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/on-off-helper.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/wifi-net-device.h"
#include "ns3/wifi-mac.h"
#include "ns3/wifi-mac-header.h"
#include "ns3/mobility-model.h"
+ Include dependency graph for power-adaptation-distance.cc:

Go to the source code of this file.

Classes

class  NodeStatistics
 

Functions

void PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest)
 
void RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest)
 

Variables

static const uint32_t packetSize = 1420
 

Function Documentation

void PowerCallback ( std::string  path,
double  oldPower,
double  newPower,
Mac48Address  dest 
)

Definition at line 280 of file power-adaptation-distance.cc.

References ns3::Simulator::Now(), and NS_LOG_INFO.

Referenced by RateCallback().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RateCallback ( std::string  path,
DataRate  oldRate,
DataRate  newRate,
Mac48Address  dest 
)

Definition at line 285 of file power-adaptation-distance.cc.

References ns3::ListPositionAllocator::Add(), ns3::NetDeviceContainer::Add(), ns3::Gnuplot::AddDataset(), first::address, ns3::CommandLine::AddValue(), NodeStatistics::AdvancePosition(), ns3::Ipv4AddressHelper::Assign(), second::cmd, ns3::Config::Connect(), ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::YansWifiChannelHelper::Default(), ns3::YansWifiPhyHelper::Default(), ns3::Simulator::Destroy(), ns3::Gnuplot::GenerateOutput(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), NodeStatistics::GetDatafile(), NodeStatistics::GetPowerDatafile(), ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), ns3::MobilityHelper::Install(), ns3::WifiHelper::Install(), ns3::MakeCallback(), third::mobility, ns3::Simulator::Now(), NS_LOG_INFO, packetSize, ns3::CommandLine::Parse(), NodeStatistics::PhyCallback(), port, NodeStatistics::PowerCallback(), PowerCallback(), NodeStatistics::RateCallback(), ns3::Simulator::Run(), NodeStatistics::RxCallback(), ns3::Simulator::Schedule(), ns3::Seconds(), ns3::WifiPhyHelper::Set(), ns3::OnOffHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::YansWifiPhyHelper::SetChannel(), ns3::OnOffHelper::SetConstantRate(), ns3::Gnuplot::SetLegend(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::WifiHelper::SetRemoteStationManager(), ns3::WifiHelper::SetStandard(), ns3::Gnuplot::SetTerminal(), ns3::Gnuplot::SetTitle(), ns3::WifiMacHelper::SetType(), sink, third::ssid, first::stack, ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), ns3::ApplicationContainer::Stop(), third::wifi, ns3::WIFI_PHY_STANDARD_80211a, and third::wifiStaNodes.

+ Here is the call graph for this function:

Variable Documentation

const uint32_t packetSize = 1420
static

Definition at line 113 of file power-adaptation-distance.cc.

Referenced by ns3::FlowProbe::AddPacketDropStats(), ns3::FlowProbe::AddPacketStats(), ns3::TcpSeqErrorModel::AddSeqToKill(), ChangeSignalAndReportRate(), ns3::QKDCrypto::CheckAuthentication(), ns3::QKDCrypto::CheckForFragmentation(), ns3::SimpleOfdmWimaxPhy::ConvertBitsToBurst(), ns3::QKDCrypto::Decrypt(), ns3::RadioBearerStatsCalculator::DlRxPdu(), ns3::RadioBearerStatsCalculator::DlTxPdu(), ns3::SixLowPanNetDevice::DoFragmentation(), SixlowpanFragmentationTest::DoRun(), Ipv4FragmentationTest::DoRun(), Ipv6FragmentationTest::DoRun(), ns3::PieQueueDisc::DropEarly(), Experiment::GenerateTraffic(), GenerateTraffic(), MyApp::GetTypeId(), ns3::QKDHelper::InstallOverlayQKD(), ns3::QKDHelper::InstallQKD(), LrWpanErrorDistanceCallback(), ns3::QKDCrypto::PacketToString(), PhyStateTrace(), IpAddressHelper::PrintIpAddresses(), StackHelper::PrintRoutingTable(), ns3::SixLowPanNetDevice::ProcessFragment(), RateCallback(), ns3::NscTcpL4Protocol::Receive(), ns3::dsdv::RoutingProtocol::RecvDsdv(), ns3::dsdvq::RoutingProtocol::RecvDsdvq(), ns3::FlowMonitor::ReportDrop(), ns3::FlowMonitor::ReportFirstTx(), ns3::FlowMonitor::ReportLastRx(), ns3::ThreeGppHttpClient::RequestEmbeddedObject(), ns3::ThreeGppHttpClient::RequestMainObject(), RxEvent(), SendPacket(), AnnexC_TestCase::SendPacket(), ns3::ThreeGppHttpServer::ServeFromTxBuffer(), ns3::TcpGeneralErrorModel::SetDropCallback(), ns3::TcpFlagErrorModel::SetKillRepeat(), ns3::SixLowPanNetDevice::Fragments::SetPacketSize(), MyApp::Setup(), ns3::QKDSend::Setup(), SimpleSource::Setup(), NodeStatistics::SetupPhy(), TcpDropRatioErrorModel::TcpDropRatioErrorModel(), TearDownLink(), ns3::RadioBearerStatsCalculator::UlRxPdu(), and ns3::RadioBearerStatsCalculator::UlTxPdu().