ns3::Ns2ExtWifiPhyHelper Class Reference

#include <ns2ext-wifi-helper.h>

Inheritance diagram for ns3::Ns2ExtWifiPhyHelper:
Inheritance graph
[legend]
Collaboration diagram for ns3::Ns2ExtWifiPhyHelper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Ns2ExtWifiPhyHelper ()
void SetChannel (Ptr< Ns2ExtWifiChannel > channel)
void Set (std::string name, const AttributeValue &v)
virtual Ptr< WifiPhyCreate (Ptr< Node > node, Ptr< WifiNetDevice > device) const

Static Public Member Functions

static Ns2ExtWifiPhyHelper Default (void)
static void EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid)
static void EnablePcap (std::string filename, NetDeviceContainer d)
static void EnablePcap (std::string filename, NodeContainer n)
static void EnablePcapAll (std::string filename)
static void EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid)
static void EnableAscii (std::ostream &os, NetDeviceContainer d)
static void EnableAscii (std::ostream &os, NodeContainer n)
static void EnableAsciiAll (std::ostream &os)

Private Attributes

ObjectFactory m_phy
Ptr< Ns2ExtWifiChannelm_channel

Detailed Description

Definition at line 64 of file ns2ext-wifi-helper.h.


Constructor & Destructor Documentation

ns3::Ns2ExtWifiPhyHelper::Ns2ExtWifiPhyHelper (  ) 

Definition at line 140 of file ns2ext-wifi-helper.cc.


Member Function Documentation

Ptr< WifiPhy > ns3::Ns2ExtWifiPhyHelper::Create ( Ptr< Node node,
Ptr< WifiNetDevice device 
) const [virtual]
Parameters:
node the node on which the PHY object will reside
device the device within which the PHY object will reside
Returns:
a new PHY object.

Subclasses must implement this method to allow the ns3::WifiHelper class to create PHY objects from ns3::WifiHelper::Install.

Implements ns3::WifiPhyHelper.

Definition at line 166 of file ns2ext-wifi-helper.cc.

Ns2ExtWifiPhyHelper ns3::Ns2ExtWifiPhyHelper::Default ( void   )  [static]

Definition at line 147 of file ns2ext-wifi-helper.cc.

void ns3::Ns2ExtWifiPhyHelper::EnableAscii ( std::ostream &  os,
NodeContainer  n 
) [static]
Parameters:
os output stream
n node container

Enable ascii output on each device which is of the ns3::WifiNetDevice type and which is located in one of the input node and dump that to the specified stdc++ output stream.

Definition at line 250 of file ns2ext-wifi-helper.cc.

References ns3::NetDeviceContainer::Begin(), EnableAscii(), and ns3::NetDeviceContainer::End().

void ns3::Ns2ExtWifiPhyHelper::EnableAscii ( std::ostream &  os,
NetDeviceContainer  d 
) [static]
Parameters:
os output stream
d device container

Enable ascii output on each device which is of the ns3::WifiNetDevice type and which is located in the input device container and dump that to the specified stdc++ output stream.

Definition at line 241 of file ns2ext-wifi-helper.cc.

References ns3::AsciiPhyRxOkEvent(), ns3::AsciiPhyTxEvent(), ns3::Config::Connect(), ns3::Packet::EnablePrinting(), and ns3::MakeBoundCallback().

void ns3::Ns2ExtWifiPhyHelper::EnableAscii ( std::ostream &  os,
uint32_t  nodeid,
uint32_t  deviceid 
) [static]
Parameters:
os output stream
nodeid the id of the node to generate ascii output for.
deviceid the id of the device to generate ascii output for.

Enable ascii output on the specified deviceid within the specified nodeid if it is of type ns3::WifiNetDevice and dump that to the specified stdc++ output stream.

Definition at line 230 of file ns2ext-wifi-helper.cc.

Referenced by EnableAscii().

void ns3::Ns2ExtWifiPhyHelper::EnableAsciiAll ( std::ostream &  os  )  [static]
Parameters:
os output stream

Enable ascii output on each device which is of the ns3::WifiNetDevice type and dump that to the specified stdc++ output stream.

Definition at line 265 of file ns2ext-wifi-helper.cc.

References ns3::NetDeviceContainer::Add().

void ns3::Ns2ExtWifiPhyHelper::EnablePcap ( std::string  filename,
NodeContainer  n 
) [static]
Parameters:
filename filename prefix to use for pcap files.
n container of nodes.

Enable pcap output on each device which is of the ns3::WifiNetDevice type and which is located in one of the input nodes.

Definition at line 209 of file ns2ext-wifi-helper.cc.

References ns3::NetDeviceContainer::Begin(), EnablePcap(), and ns3::NetDeviceContainer::End().

void ns3::Ns2ExtWifiPhyHelper::EnablePcap ( std::string  filename,
NetDeviceContainer  d 
) [static]
Parameters:
filename filename prefix to use for pcap files.
d container of devices of type ns3::WifiNetDevice

Enable pcap output on each input device which is of the ns3::WifiNetDevice type.

Definition at line 200 of file ns2ext-wifi-helper.cc.

void ns3::Ns2ExtWifiPhyHelper::EnablePcap ( std::string  filename,
uint32_t  nodeid,
uint32_t  deviceid 
) [static]
Parameters:
filename filename prefix to use for pcap files.
nodeid the id of the node to generate pcap output for.
deviceid the id of the device to generate pcap output for.

Generate a pcap file which contains the link-level data observed by the specified deviceid within the specified nodeid. The pcap data is stored in the file prefix-nodeid-deviceid.pcap.

This method should be invoked after the network topology has been fully constructed.

Definition at line 176 of file ns2ext-wifi-helper.cc.

References ns3::ObjectFactory::Create(), m_channel, and m_phy.

Referenced by EnablePcap().

void ns3::Ns2ExtWifiPhyHelper::EnablePcapAll ( std::string  filename  )  [static]
Parameters:
filename filename prefix to use for pcap files.

Enable pcap output on each device which is of the ns3::WifiNetDevice type

Definition at line 224 of file ns2ext-wifi-helper.cc.

References ns3::NetDeviceContainer::Add().

void ns3::Ns2ExtWifiPhyHelper::Set ( std::string  name,
const AttributeValue v 
)

Definition at line 159 of file ns2ext-wifi-helper.cc.

void ns3::Ns2ExtWifiPhyHelper::SetChannel ( Ptr< Ns2ExtWifiChannel channel  ) 

Definition at line 154 of file ns2ext-wifi-helper.cc.


Member Data Documentation

Definition at line 155 of file ns2ext-wifi-helper.h.

Referenced by EnablePcap().

Definition at line 154 of file ns2ext-wifi-helper.h.

Referenced by EnablePcap().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:11:33 2009 for NS-3 by  doxygen 1.6.3