20 #include "ns3/propagation-delay-model.h" 
   21 #include "ns3/spectrum-propagation-loss-model.h" 
   22 #include "ns3/mobility-model.h" 
   24 #include "ns3/config.h" 
   25 #include "ns3/simulator.h" 
   26 #include "ns3/names.h" 
   27 #include "ns3/antenna-model.h" 
   28 #include "ns3/spectrum-channel.h" 
   29 #include "ns3/half-duplex-ideal-phy.h" 
   30 #include "ns3/mac48-address.h" 
   31 #include "ns3/aloha-noack-net-device.h" 
  106   factory.
Set (n0, v0);
 
  107   factory.
Set (n1, v1);
 
  108   factory.
Set (n2, v2);
 
  109   factory.
Set (n3, v3);
 
  110   factory.
Set (n4, v4);
 
  111   factory.
Set (n5, v5);
 
  112   factory.
Set (n6, v6);
 
  113   factory.
Set (n7, v7);
 
  144       phy->SetDevice (dev);
 
  146       NS_ASSERT_MSG (
m_txPsd, 
"you forgot to call AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity ()");
 
  147       phy->SetTxPowerSpectralDensity (
m_txPsd);
 
  149       NS_ASSERT_MSG (
m_noisePsd, 
"you forgot to call AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity ()");
 
  150       phy->SetNoisePowerSpectralDensity (
m_noisePsd);
 
  163       NS_ASSERT_MSG (antenna, 
"error in creating the AntennaModel object");
 
  164       phy->SetAntenna (antenna);
 
  181   Ptr<Node> node = Names::Find<Node> (nodeName);
 
Ptr< SpectrumValue > m_noisePsd
 
Ptr< SpectrumChannel > m_channel
 
Smart pointer class similar to boost::intrusive_ptr. 
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
void SetTxPowerSpectralDensity(Ptr< SpectrumValue > txPsd)
 
void NotifyReceptionStart()
Notify the MAC that the PHY has started a reception. 
 
bool StartTx(Ptr< Packet > p)
Start a transmission. 
 
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator. 
 
Ptr< T > GetObject(void) const 
Get a pointer to the requested aggregated Object. 
 
AdhocAlohaNoackIdealPhyHelper()
 
Hold a value for an Attribute. 
 
void SetPhyAttribute(std::string name, const AttributeValue &v)
 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory. 
 
Iterator End(void) const 
Get an iterator which indicates past-the-last Node in the container. 
 
void NotifyReceptionEndOk(Ptr< Packet > p)
Notify the MAC that the PHY finished a reception successfully. 
 
Keep track of the current position and velocity of an object. 
 
~AdhocAlohaNoackIdealPhyHelper()
 
static Mac48Address Allocate(void)
Allocate a new Mac48Address. 
 
Ptr< Object > Create(void) const 
Create an Object instance of the configured TypeId. 
 
void Add(NetDeviceContainer other)
Append the contents of another NetDeviceContainer to the end of this container. 
 
Ptr< SpectrumValue > m_txPsd
 
holds a vector of ns3::NetDevice pointers 
 
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
 
void NotifyTransmissionEnd(Ptr< const Packet >)
Notify the MAC that the PHY has finished a previously started transmission. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
keep track of a set of node pointers. 
 
Iterator Begin(void) const 
Get an iterator which refers to the first Node in the container. 
 
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
 
void Set(std::string name, const AttributeValue &value)
Set an attribute to be set during construction. 
 
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
 
Instantiate subclasses of ns3::Object. 
 
uint32_t AddDevice(Ptr< NetDevice > device)
Associate a NetDevice to this node. 
 
void SetAntenna(std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue())
 
void SetChannel(Ptr< SpectrumChannel > channel)
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper ...
 
NetDeviceContainer Install(NodeContainer c) const 
 
void SetNoisePowerSpectralDensity(Ptr< SpectrumValue > noisePsd)