10#include "ns3/aloha-noack-net-device.h" 
   11#include "ns3/antenna-model.h" 
   12#include "ns3/config.h" 
   13#include "ns3/half-duplex-ideal-phy.h" 
   15#include "ns3/mac48-address.h" 
   16#include "ns3/mobility-model.h" 
   18#include "ns3/propagation-delay-model.h" 
   19#include "ns3/simulator.h" 
   20#include "ns3/spectrum-channel.h" 
   21#include "ns3/spectrum-propagation-loss-model.h" 
   30    m_phy.SetTypeId(
"ns3::HalfDuplexIdealPhy");
 
   31    m_device.SetTypeId(
"ns3::AlohaNoackNetDevice");
 
   32    m_queue.SetTypeId(
"ns3::DropTailQueue<Packet>");
 
   33    m_antenna.SetTypeId(
"ns3::IsotropicAntennaModel");
 
 
   83    for (
auto i = c.
Begin(); i != c.
End(); ++i)
 
  110            "you forgot to call AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity ()");
 
  111        phy->SetTxPowerSpectralDensity(
m_txPsd);
 
  115            "you forgot to call AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity ()");
 
  116        phy->SetNoisePowerSpectralDensity(
m_noisePsd);
 
  123        phy->SetGenericPhyTxEndCallback(
 
  125        phy->SetGenericPhyRxStartCallback(
 
  127        phy->SetGenericPhyRxEndOkCallback(
 
  132        NS_ASSERT_MSG(antenna, 
"error in creating the AntennaModel object");
 
  133        phy->SetAntenna(antenna);
 
  135        node->AddDevice(dev);
 
 
void SetPhyAttribute(std::string name, const AttributeValue &v)
ObjectFactory m_queue
Object factory for the Queue objects.
void SetTxPowerSpectralDensity(Ptr< SpectrumValue > txPsd)
Ptr< SpectrumChannel > m_channel
Channel.
AdhocAlohaNoackIdealPhyHelper()
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Ptr< SpectrumValue > m_noisePsd
Noise power spectral density.
Ptr< SpectrumValue > m_txPsd
Tx power spectral density.
void SetNoisePowerSpectralDensity(Ptr< SpectrumValue > noisePsd)
ObjectFactory m_phy
Object factory for the phy objects.
ObjectFactory m_antenna
Object factory for the Antenna objects.
ObjectFactory m_device
Object factory for the NetDevice objects.
void SetChannel(Ptr< SpectrumChannel > channel)
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper
~AdhocAlohaNoackIdealPhyHelper()
NetDeviceContainer Install(NodeContainer c) const
This devices implements the following features:
void NotifyReceptionStart()
Notify the MAC that the PHY has started a reception.
void NotifyTransmissionEnd(Ptr< const Packet >)
Notify the MAC that the PHY has finished a previously started transmission.
void NotifyReceptionEndOk(Ptr< Packet > p)
Notify the MAC that the PHY finished a reception successfully.
interface for antenna radiation pattern models
Hold a value for an Attribute.
This PHY layer implementation realizes an ideal OFDM PHY which transmits half-duplex (i....
bool StartTx(Ptr< Packet > p)
Start a transmission.
static Mac48Address Allocate()
Allocate a new Mac48Address.
Keep track of the current position and velocity of an object.
static Ptr< T > Find(std::string path)
Given a name path string, look to see if there's an object in the system with that associated to it.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
Iterator End() const
Get an iterator which indicates past-the-last Node in the container.
Iterator Begin() const
Get an iterator which refers to the first Node in the container.
Smart pointer class similar to boost::intrusive_ptr.
Template class for packet Queues.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...