#include <iostream>
#include <ns3/core-module.h>
#include <ns3/network-module.h>
#include <ns3/spectrum-model-ism2400MHz-res1MHz.h>
#include <ns3/spectrum-model-300kHz-300GHz-log.h>
#include <ns3/wifi-spectrum-value-helper.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/waveform-generator.h>
#include <ns3/spectrum-analyzer.h>
#include <ns3/log.h>
#include <string>
#include <iomanip>
#include <ns3/friis-spectrum-propagation-loss.h>
#include <ns3/propagation-delay-model.h>
#include <ns3/mobility-module.h>
#include <ns3/spectrum-helper.h>
#include <ns3/applications-module.h>
#include <ns3/adhoc-aloha-noack-ideal-phy-helper.h>
Go to the source code of this file.
Classes | |
class | GlobalPathlossDatabase |
Store the last pathloss value for each TX-RX pair. More... | |
Functions | |
int | main (int argc, char **argv) |
NS_LOG_COMPONENT_DEFINE ("TestAdhocOfdmAloha") | |
void | PhyRxEndOkTrace (std::string context, Ptr< const Packet > p) |
Variables | |
static uint64_t | g_rxBytes |
static bool | g_verbose = false |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 122 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
References ns3::SpectrumChannelHelper::AddPropagationLoss(), ns3::CommandLine::AddValue(), ns3::Config::Connect(), ns3::SpectrumChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::WifiSpectrumValue5MhzFactory::CreateConstant(), ns3::WifiSpectrumValue5MhzFactory::CreateTxPowerSpectralDensity(), ns3::Simulator::Destroy(), first::devices, ns3::g_rxBytes, g_verbose, ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Object::GetObject(), ns3::PacketSocketHelper::Install(), ns3::OnOffHelper::Install(), ns3::AdhocAlohaNoackIdealPhyHelper::Install(), ns3::MobilityHelper::Install(), ns3::MakeCallback(), ns3::CommandLine::Parse(), ns3::PhyRxEndOkTrace(), GlobalPathlossDatabase::Print(), ns3::Simulator::Run(), ns3::OnOffHelper::SetAttribute(), ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel(), ns3::SpectrumChannelHelper::SetChannel(), ns3::OnOffHelper::SetConstantRate(), ns3::MatrixPropagationLossModel::SetLoss(), ns3::MobilityHelper::SetMobilityModel(), ns3::AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity(), ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute(), ns3::PacketSocketAddress::SetPhysicalAddress(), ns3::SpectrumChannelHelper::SetPropagationDelay(), ns3::PacketSocketAddress::SetProtocol(), ns3::PacketSocketAddress::SetSingleDevice(), ns3::AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity(), ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), ns3::ApplicationContainer::Stop(), and GlobalPathlossDatabase::UpdatePathloss().
NS_LOG_COMPONENT_DEFINE | ( | "TestAdhocOfdmAloha" | ) |
Definition at line 52 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
References ns3::g_rxBytes, g_verbose, and ns3::Packet::GetSize().
|
static |
Definition at line 49 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
|
static |
Definition at line 48 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
Referenced by main(), and PhyRxEndOkTrace().