A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
adhoc-aloha-ideal-phy-with-microwave-oven.cc File Reference
#include <ns3/adhoc-aloha-noack-ideal-phy-helper.h>
#include <ns3/applications-module.h>
#include <ns3/core-module.h>
#include <ns3/friis-spectrum-propagation-loss.h>
#include <ns3/ism-spectrum-value-helper.h>
#include <ns3/log.h>
#include <ns3/microwave-oven-spectrum-value-helper.h>
#include <ns3/mobility-module.h>
#include <ns3/multi-model-spectrum-channel.h>
#include <ns3/network-module.h>
#include <ns3/non-communicating-net-device.h>
#include <ns3/propagation-delay-model.h>
#include <ns3/spectrum-analyzer-helper.h>
#include <ns3/spectrum-analyzer.h>
#include <ns3/spectrum-helper.h>
#include <ns3/spectrum-model-300kHz-300GHz-log.h>
#include <ns3/spectrum-model-ism2400MHz-res1MHz.h>
#include <ns3/waveform-generator-helper.h>
#include <ns3/waveform-generator.h>
#include <iostream>
#include <string>
+ Include dependency graph for adhoc-aloha-ideal-phy-with-microwave-oven.cc:

Go to the source code of this file.

Functions

void PhyRxEndErrorTrace (std::string context, Ptr< const Packet > p)
 PHY end error RX trace.
 
void PhyRxEndOkTrace (std::string context, Ptr< const Packet > p)
 PHY end OK RX trace.
 
void PhyRxStartTrace (std::string context, Ptr< const Packet > p)
 PHY end TX trace.
 
void PhyTxEndTrace (std::string context, Ptr< const Packet > p)
 PHY start TX trace.
 
void PhyTxStartTrace (std::string context, Ptr< const Packet > p)
 
void ReceivePacket (Ptr< Socket > socket)
 Receive callback.
 
Ptr< SocketSetupPacketReceive (Ptr< Node > node)
 Create a socket and prepare it for packet reception.
 

Variables

static bool g_verbose = false
 True for verbose output.
 

Function Documentation

◆ PhyRxEndErrorTrace()

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

PHY end error RX trace.

Parameters
contextThe context.
pThe packet.

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

References g_verbose.

◆ PhyRxEndOkTrace()

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

PHY end OK RX trace.

Parameters
contextThe context.
pThe packet.

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

References g_verbose.

◆ PhyRxStartTrace()

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

PHY end TX trace.

Parameters
contextThe context.
pThe packet.

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

References g_verbose.

◆ PhyTxEndTrace()

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

PHY start TX trace.

Parameters
contextThe context.
pThe packet.

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

References g_verbose.

◆ PhyTxStartTrace()

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

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

References g_verbose.

◆ ReceivePacket()

void ReceivePacket ( Ptr< Socket > socket)

Receive callback.

Parameters
socketThe receiving socket.

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

References g_verbose.

Referenced by SetupPacketReceive().

+ Here is the caller graph for this function:

◆ SetupPacketReceive()

Ptr< Socket > SetupPacketReceive ( Ptr< Node > node)

Create a socket and prepare it for packet reception.

Parameters
nodeThe node.
Returns
a new socket

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

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

+ Here is the call graph for this function:

Variable Documentation

◆ g_verbose

bool g_verbose = false
static