A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
adhoc-aloha-ideal-phy-with-microwave-oven.cc File Reference
#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/multi-model-spectrum-channel.h>
#include <ns3/waveform-generator.h>
#include <ns3/spectrum-analyzer.h>
#include <ns3/log.h>
#include <string>
#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>
#include <ns3/waveform-generator-helper.h>
#include <ns3/spectrum-analyzer-helper.h>
#include <ns3/non-communicating-net-device.h>
#include <ns3/microwave-oven-spectrum-value-helper.h>
+ Include dependency graph for adhoc-aloha-ideal-phy-with-microwave-oven.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void PhyRxEndErrorTrace (std::string context, Ptr< const Packet > p)
 
void PhyRxEndOkTrace (std::string context, Ptr< const Packet > p)
 
void PhyRxStartTrace (std::string context, Ptr< const Packet > p)
 
void PhyTxEndTrace (std::string context, Ptr< const Packet > p)
 
void PhyTxStartTrace (std::string context, Ptr< const Packet > p)
 
void ReceivePacket (Ptr< Socket > socket)
 
Ptr< SocketSetupPacketReceive (Ptr< Node > node)
 

Variables

static bool g_verbose = false
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 125 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References ns3::ListPositionAllocator::Add(), ns3::NodeContainer::Add(), ns3::CommandLine::AddValue(), ns3::Config::Connect(), ns3::SpectrumChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::WifiSpectrumValue5MhzFactory::CreateConstant(), ns3::MicrowaveOvenSpectrumValueHelper::CreatePowerSpectralDensityMwo1(), ns3::WifiSpectrumValue5MhzFactory::CreateTxPowerSpectralDensity(), ns3::SpectrumChannelHelper::Default(), ns3::Simulator::Destroy(), ns3::SpectrumAnalyzerHelper::EnableAsciiAll(), g_verbose, ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Object::GetObject(), ns3::PacketSocketHelper::Install(), ns3::OnOffHelper::Install(), ns3::WaveformGeneratorHelper::Install(), ns3::AdhocAlohaNoackIdealPhyHelper::Install(), ns3::SpectrumAnalyzerHelper::Install(), ns3::MobilityHelper::Install(), ns3::MakeCallback(), NS_LOG_INFO, ns3::CommandLine::Parse(), PhyRxEndErrorTrace(), PhyRxEndOkTrace(), PhyRxStartTrace(), PhyTxEndTrace(), PhyTxStartTrace(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::OnOffHelper::SetAttribute(), ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel(), ns3::WaveformGeneratorHelper::SetChannel(), ns3::SpectrumAnalyzerHelper::SetChannel(), ns3::SpectrumChannelHelper::SetChannel(), ns3::MobilityHelper::SetMobilityModel(), ns3::AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity(), ns3::SpectrumAnalyzerHelper::SetPhyAttribute(), ns3::WaveformGeneratorHelper::SetPhyAttribute(), ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute(), ns3::PacketSocketAddress::SetPhysicalAddress(), ns3::MobilityHelper::SetPositionAllocator(), ns3::PacketSocketAddress::SetProtocol(), ns3::SpectrumAnalyzerHelper::SetRxSpectrumModel(), ns3::PacketSocketAddress::SetSingleDevice(), ns3::AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity(), ns3::WaveformGeneratorHelper::SetTxPowerSpectralDensity(), SetupPacketReceive(), ns3::SpectrumModelIsm2400MhzRes1Mhz, ns3::WaveformGenerator::Start(), ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), and ns3::ApplicationContainer::Stop().

void PhyRxEndErrorTrace ( std::string  context,
Ptr< const Packet p 
)

Definition at line 91 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References g_verbose.

Referenced by main().

+ Here is the caller graph for this function:

void PhyRxEndOkTrace ( std::string  context,
Ptr< const Packet p 
)

Definition at line 82 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References g_verbose.

Referenced by main().

+ Here is the caller graph for this function:

void PhyRxStartTrace ( std::string  context,
Ptr< const Packet p 
)

Definition at line 73 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References g_verbose.

Referenced by main().

+ Here is the caller graph for this function:

void PhyTxEndTrace ( std::string  context,
Ptr< const Packet p 
)

Definition at line 64 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References g_verbose.

Referenced by main().

+ Here is the caller graph for this function:

void PhyTxStartTrace ( std::string  context,
Ptr< const Packet p 
)

Definition at line 54 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References g_verbose.

Referenced by main().

+ Here is the caller graph for this function:

void ReceivePacket ( Ptr< Socket socket)

Definition at line 101 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References g_verbose, ns3::Packet::GetSize(), and ns3::Socket::Recv().

Referenced by SetupPacketReceive().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ptr<Socket> SetupPacketReceive ( Ptr< Node node)

Definition at line 116 of file adhoc-aloha-ideal-phy-with-microwave-oven.cc.

References ns3::Socket::Bind(), ns3::Socket::CreateSocket(), ns3::TypeId::LookupByName(), ns3::MakeCallback(), ReceivePacket(), and ns3::Socket::SetRecvCallback().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation